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
Copy file name to clipboardExpand all lines: README.md
+2
Original file line number
Diff line number
Diff line change
@@ -171,8 +171,10 @@ while (page.hasNextPage()) {
171
171
### Accessing raw Response data (e.g., headers)
172
172
173
173
The "raw" `Response` returned by `fetch()` can be accessed through the `.asResponse()` method on the `APIPromise` type that all methods return.
174
+
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.
174
175
175
176
You can also use the `.withResponse()` method to get the raw `Response` along with the parsed data.
177
+
Unlike `.asResponse()` this method consumes the body, returning once it is parsed.
0 commit comments