Questions tagged [httpresponse]
An HTTP response is a network message which is made of a body and metadata in the form of headers, according to HTTP specification. May also refer an HttpResponse class in software frameworks and libraries that automates relevant functionality
httpresponse
3,862
questions
0
votes
0
answers
19
views
Angular CacheStorage not storing Response as expected when converted from HttpResponse
In Angular 15 I'm implementing Client-Side caching through the CacheStorage interface.
I convert back and forth between HttpResponse and fetch interface's Response type when storing responses in ...
-2
votes
1
answer
20
views
What are multiple http "content types" for JSON .?
What are multiple http "content types" for JSON reply.?
Apart from "application/json" content type can we expect any other content types..?
Similarly, do we have any other content ...
0
votes
0
answers
12
views
Why do proxy async API's sometimes return a 202 instead of a 200?
I was calling an internal service API through an external proxy API, but the responses I was getting were all 202's. These were async API's, but they all return 200's when you call them directly on ...
0
votes
2
answers
53
views
How to Retrieve Specific Error Details from Power Automate Workflow HTTP Response
I am currently using a Power Automate Workflow titled "Post to a channel when a webhook request is received." I've encountered an issue where large messages cause a "413 Entity Too ...
1
vote
0
answers
44
views
Zip file is created successfully whenever I use os.Create() but when I try to send the Zip file via HTTP Response I get gibberish data in Postman resp
This is my code that generates a ZIP file on the fly and writes a pdf (fetched from AWS S3 bucket) inside the ZIP file. If I write the ZIP file to the disk via os.create there is no issues but if I ...
-1
votes
0
answers
43
views
Extract Body from a http response with error code in Kotlin
I am building an app and after placing a call to the backend, I received an error response. I need to extract the body of the http response but I cannot find a good way to do it. The response has an ...
0
votes
1
answer
53
views
Mocking fetch return response using Jest in Typescript
I have a function that calls fetch() and handles different cases of its response data.
When trying to mock the global fetch function using Jest I am having trouble with the Response type.
I only need ...
0
votes
1
answer
34
views
In Firefox DevTools Network tab, how to see only failed requests?
I want to be able to see all requests that have error responses (of any kind). By that, I mean requests that have a response with a status code like "4xx" or "5xx".
I discovered ...
0
votes
1
answer
22
views
How to capture array values from a HTTP JSON response payload using JMeter PostProcessor and create/write it in a new CSV file?
I need to create a new CSV file by capturing 100s of array values retured as part of a JSON response Payload.
My response payload for a GET call:
{ "total": 5, "limit": 5, "...
0
votes
1
answer
35
views
Failed to execute 'json' on 'Response': body stream already read
I am getting an error when I try to read a response twice:
I need the response in a form of text assigned to a cosnt, e.g. (api_response.text()) and then I need to pass the api_response.json() to a ...
0
votes
1
answer
59
views
How to use repository, usecase and repository_impl when working with api
I was implementing clean architecture while development a new app With RestApi , I am having difficulty during implement RepositoryImpl extends from Base Api Repository to call api and pass through ...
-1
votes
1
answer
23
views
How and when to use the Handler and Handlers types?
There is no documentation for the Handler and Handlers types:
export type Handler<T = any, State = Record<string, unknown>> = (
req: Request,
ctx: FreshContext<State, T>,
) => ...
0
votes
0
answers
17
views
Load huge dataSet on UI from server as response object
I am try to load huge data (250 MB or 140000 records) from server to client(UI) as response. My server side process complete within only 90 secs. But when the output wrapper object is load from Server ...
0
votes
0
answers
26
views
How to read the written data from the Servlet's Response [duplicate]
1.Now, I have this Response object, and I'm using the Response.getWriter object to write to it and some JSON data.
PrintWriter writer = response.getWriter();
writer.write("hello world");
...
0
votes
1
answer
229
views
How to get HttpResponseData in middleware after executing the Azure function?
Hi i'm trying to print in console the HttpRequestData and the HttpResponseData using a middleware for azure functions (Isolated).
I can get correctly the value for HttpRequestData but the value for ...