You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The "raw" `Response` returned by `fetch()` can be accessed through the `.asResponse()` method on the `APIPromise` type that all methods return.
370
+
This method returns as soon as the headers for a successful response are received and does not consume the response body, so you are free to write custom parsing or streaming logic.
370
371
371
372
You can also use the `.withResponse()` method to get the raw `Response` along with the parsed data.
373
+
Unlike `.asResponse()` this method consumes the body, returning once it is parsed.
0 commit comments