diff --git a/docs/pages/advanced/error-handling.md b/docs/pages/advanced/error-handling.md index a27eb595..3095c007 100644 --- a/docs/pages/advanced/error-handling.md +++ b/docs/pages/advanced/error-handling.md @@ -64,7 +64,7 @@ axios.get("/user/12345", { }); ``` -Using the `toJSON` method, you can get a object with more information about the error. +Using the `toJSON` method, you can get an object with more information about the error. ```js axios.get("/user/12345").catch(function (error) { diff --git a/docs/pages/advanced/request-config.md b/docs/pages/advanced/request-config.md index 54b3f2b6..43f8de23 100644 --- a/docs/pages/advanced/request-config.md +++ b/docs/pages/advanced/request-config.md @@ -33,7 +33,7 @@ The `allowAbsoluteUrls` determines whether or not absolute URLs will override a ### `transformRequest` -The `transformRequest` function allows you to modify the request data before it is sent to the server. This function is called with the request data as its only argument. This is only applicable for request methods `PUT`, `POST`, `PATCH` and `DELETE`. The last function in the array must return a string or an instance of Buffer, ArrayBuffer FormData or Stream. +The `transformRequest` function allows you to modify the request data before it is sent to the server. This function is called with the request data as its only argument. This is only applicable for request methods `PUT`, `POST`, `PATCH` and `DELETE`. The last function in the array must return a string or an instance of Buffer, ArrayBuffer, FormData or Stream. ### `transformResponse` diff --git a/docs/pages/advanced/x-www-form-urlencoded-format.md b/docs/pages/advanced/x-www-form-urlencoded-format.md index 583a0809..ed1d9dda 100644 --- a/docs/pages/advanced/x-www-form-urlencoded-format.md +++ b/docs/pages/advanced/x-www-form-urlencoded-format.md @@ -2,7 +2,7 @@ ## URLSearchParams -By default, axios serializes JavaScript objects to `JSON`. To send data in the [`application/x-www-form-urlencoded` format](https://developer.mozilla.org/en-US/docs/Web/HTTP/Methods/POST) instead, you can use the [`URLSearchParams`](https://developer.mozilla.org/en-US/docs/Web/API/URLSearchParams) API, which is [supported](http://www.caniuse.com/#feat=urlsearchparams) in the vast majority of browsers,and [Node](https://nodejs.org/api/url.html#url_class_urlsearchparams) starting with v10 (released in 2018). +By default, axios serializes JavaScript objects to `JSON`. To send data in the [`application/x-www-form-urlencoded` format](https://developer.mozilla.org/en-US/docs/Web/HTTP/Methods/POST) instead, you can use the [`URLSearchParams`](https://developer.mozilla.org/en-US/docs/Web/API/URLSearchParams) API, which is [supported](http://www.caniuse.com/#feat=urlsearchparams) in the vast majority of browsers, and [Node](https://nodejs.org/api/url.html#url_class_urlsearchparams) starting with v10 (released in 2018). ```js const params = new URLSearchParams({ foo: 'bar' });