2
0
mirror of https://github.com/tenrok/axios.git synced 2026-05-15 11:59:42 +03:00

Added Response header access instructions (#1901)

* Added Response header access instructions

* Added note about using bracket notation
This commit is contained in:
Alexandru Ungureanu
2020-02-26 13:03:20 +02:00
committed by GitHub
parent b139abfc36
commit 67e560da10
+3 -2
View File
@@ -426,8 +426,9 @@ The response for a request contains the following information.
// `statusText` is the HTTP status message from the server response
statusText: 'OK',
// `headers` the headers that the server responded with
// All header names are lower cased
// `headers` the HTTP headers that the server responded with
// All header names are lower cased and can be accessed using the bracket notation.
// Example: `response.headers['content-type']`
headers: {},
// `config` is the config that was provided to `axios` for the request