mirror of
https://github.com/tenrok/axios.git
synced 2026-06-23 20:40:40 +03:00
Added Response header access instructions (#1901)
* Added Response header access instructions * Added note about using bracket notation
This commit is contained in:
committed by
GitHub
parent
b139abfc36
commit
67e560da10
@@ -426,8 +426,9 @@ The response for a request contains the following information.
|
|||||||
// `statusText` is the HTTP status message from the server response
|
// `statusText` is the HTTP status message from the server response
|
||||||
statusText: 'OK',
|
statusText: 'OK',
|
||||||
|
|
||||||
// `headers` the headers that the server responded with
|
// `headers` the HTTP headers that the server responded with
|
||||||
// All header names are lower cased
|
// All header names are lower cased and can be accessed using the bracket notation.
|
||||||
|
// Example: `response.headers['content-type']`
|
||||||
headers: {},
|
headers: {},
|
||||||
|
|
||||||
// `config` is the config that was provided to `axios` for the request
|
// `config` is the config that was provided to `axios` for the request
|
||||||
|
|||||||
Reference in New Issue
Block a user