We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9696f24 commit fa8163cCopy full SHA for fa8163c
docs/user-guide/builtins.md
@@ -140,6 +140,12 @@ else:
140
print(response.status)
141
```
142
143
+The object returned from an `await fetch` call will have attributes that
144
+correspond to the
145
+[JavaScript response object](https://developer.mozilla.org/en-US/docs/Web/API/Response).
146
+This is useful for getting response codes, headers and other metadata before
147
+processing the response's data.
148
+
149
Alternatively, rather than using a double `await` (one to get the response, the
150
other to grab the data), it's possible to chain the calls into a single
151
`await` like this:
0 commit comments