mirror of
https://github.com/tenrok/axios.git
synced 2026-06-20 20:00:40 +03:00
docs: linting documentation notes (#5791)
This commit is contained in:
committed by
GitHub
parent
ca73eb878d
commit
dff74ae374
@@ -215,7 +215,7 @@ async function getUser() {
|
|||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
> **Note** `async/await` is part of ECMAScript 2017 and is not supported in Internet
|
> **Note**: `async/await` is part of ECMAScript 2017 and is not supported in Internet
|
||||||
> Explorer and older browsers, so use with caution.
|
> Explorer and older browsers, so use with caution.
|
||||||
|
|
||||||
Performing a `POST` request
|
Performing a `POST` request
|
||||||
@@ -961,8 +961,7 @@ axios.post('https://something.com/', querystring.stringify({ foo: 'bar' }));
|
|||||||
|
|
||||||
You can also use the [`qs`](https://github.com/ljharb/qs) library.
|
You can also use the [`qs`](https://github.com/ljharb/qs) library.
|
||||||
|
|
||||||
> **Note**
|
> **Note**: The `qs` library is preferable if you need to stringify nested objects, as the `querystring` method has [known issues](https://github.com/nodejs/node-v0.x-archive/issues/1665) with that use case.
|
||||||
> The `qs` library is preferable if you need to stringify nested objects, as the `querystring` method has [known issues](https://github.com/nodejs/node-v0.x-archive/issues/1665) with that use case.
|
|
||||||
|
|
||||||
### 🆕 Automatic serialization to URLSearchParams
|
### 🆕 Automatic serialization to URLSearchParams
|
||||||
|
|
||||||
@@ -1078,8 +1077,7 @@ Axios FormData serializer supports some special endings to perform the following
|
|||||||
- `{}` - serialize the value with JSON.stringify
|
- `{}` - serialize the value with JSON.stringify
|
||||||
- `[]` - unwrap the array-like object as separate fields with the same key
|
- `[]` - unwrap the array-like object as separate fields with the same key
|
||||||
|
|
||||||
> **Note**
|
> **Note**: unwrap/expand operation will be used by default on arrays and FileList objects
|
||||||
> unwrap/expand operation will be used by default on arrays and FileList objects
|
|
||||||
|
|
||||||
FormData serializer supports additional options via `config.formSerializer: object` property to handle rare cases:
|
FormData serializer supports additional options via `config.formSerializer: object` property to handle rare cases:
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user