File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -84,11 +84,14 @@ async function formDataBlobRequest () {
84
84
formData .append (' field' , 42 )
85
85
formData .set (' file' , await openAsBlob (' ./index.mjs' ))
86
86
87
- const response = await request (' http://127.0.0.1:3000' , {
87
+ const {
88
+ statusCode ,
89
+ headers ,
90
+ body
91
+ } = await request (' http://127.0.0.1:3000' , {
88
92
method: ' POST' ,
89
93
body: formData
90
94
})
91
- console .log (await response .body .text ())
92
95
93
96
const data = await body .text ()
94
97
console .log (' response received' , statusCode)
@@ -126,7 +129,7 @@ async function deleteRequest (port = 3001) {
126
129
}
127
130
```
128
131
129
- ## Production configuration
132
+ ## Production configuration
130
133
131
134
### Using interceptors to add response caching, DNS lookup caching and connection retries
132
135
You can’t perform that action at this time.
0 commit comments