@@ -195,7 +195,7 @@ To make a `POST` request, or a request with another method, we need to use `fetc
195195- ** ` method ` ** -- HTTP-method, e.g. ` POST ` ,
196196- ** ` body ` ** -- the request body, one of:
197197 - 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 ` ,
199199 - ` Blob ` /` BufferSource ` to send binary data,
200200 - [ URLSearchParams] ( info:url ) , to submit the data in ` x-www-form-urlencoded ` encoding, rarely used.
201201
@@ -298,13 +298,13 @@ fetch(url, options)
298298
299299Response properties:
300300- ` response.status ` -- HTTP code of the response,
301- - ` response.ok ` -- ` true ` is the status is 200-299.
301+ - ` response.ok ` -- ` true ` if the status is 200-299.
302302- ` response.headers ` -- Map-like object with HTTP headers.
303303
304304Methods to get response body:
305305- ** ` response.text() ` ** -- return the response as text,
306306- ** ` 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),
308308- ** ` response.blob() ` ** -- return the response as [ Blob] ( info:blob ) (binary data with type),
309309- ** ` response.arrayBuffer() ` ** -- return the response as [ ArrayBuffer] ( info:arraybuffer-binary-arrays ) (low-level binary data),
310310
0 commit comments