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 95fd9d3 commit 9e0cfcbCopy full SHA for 9e0cfcb
1 file changed
docs/examples/README.md
@@ -84,11 +84,14 @@ async function formDataBlobRequest () {
84
formData.append('field', 42)
85
formData.set('file', await openAsBlob('./index.mjs'))
86
87
- const response = await request('http://127.0.0.1:3000', {
+ const {
88
+ statusCode,
89
+ headers,
90
+ body
91
+ } = await request('http://127.0.0.1:3000', {
92
method: 'POST',
93
body: formData
94
})
- console.log(await response.body.text())
95
96
const data = await body.text()
97
console.log('response received', statusCode)
@@ -126,7 +129,7 @@ async function deleteRequest (port = 3001) {
126
129
}
127
130
```
128
131
-## Production configuration
132
+## Production configuration
133
134
### Using interceptors to add response caching, DNS lookup caching and connection retries
135
0 commit comments