@@ -195,7 +195,7 @@ To make a `POST` request, or a request with another method, we need to use `fetc
195
195
- ** ` method ` ** -- HTTP-method, e.g. ` POST ` ,
196
196
- ** ` body ` ** -- the request body, one of:
197
197
- a string (e.g. JSON-encoded),
198
- - ` FormData ` object, to submit the data as ` form/ multipart` ,
198
+ - ` FormData ` object, to submit the data as ` multipart/form-data ` ,
199
199
- ` Blob ` /` BufferSource ` to send binary data,
200
200
- [ URLSearchParams] ( info:url ) , to submit the data in ` x-www-form-urlencoded ` encoding, rarely used.
201
201
@@ -304,7 +304,7 @@ Response properties:
304
304
Methods to get response body:
305
305
- ** ` response.text() ` ** -- return the response as text,
306
306
- ** ` response.json() ` ** -- parse the response as JSON object,
307
- - ** ` response.formData() ` ** -- return the response as ` FormData ` object (form/ multipart encoding, see the next chapter),
307
+ - ** ` response.formData() ` ** -- return the response as ` FormData ` object (` multipart/form-data ` encoding, see the next chapter),
308
308
- ** ` response.blob() ` ** -- return the response as [ Blob] ( info:blob ) (binary data with type),
309
309
- ** ` response.arrayBuffer() ` ** -- return the response as [ ArrayBuffer] ( info:arraybuffer-binary-arrays ) (low-level binary data),
310
310
0 commit comments