mirror of
https://github.com/tenrok/axios.git
synced 2026-06-20 20:00:40 +03:00
Updating README
This commit is contained in:
@@ -200,6 +200,9 @@ The response for a request contains the following information.
|
|||||||
|
|
||||||
// `status` is the HTTP status code from the server response
|
// `status` is the HTTP status code from the server response
|
||||||
status: 200,
|
status: 200,
|
||||||
|
|
||||||
|
// `statusText` is the HTTP status message from the server response
|
||||||
|
status: 'OK',
|
||||||
|
|
||||||
// `headers` the headers that the server responded with
|
// `headers` the headers that the server responded with
|
||||||
headers: {},
|
headers: {},
|
||||||
@@ -216,6 +219,7 @@ axios.get('/user/12345')
|
|||||||
.then(function(response) {
|
.then(function(response) {
|
||||||
console.log(response.data);
|
console.log(response.data);
|
||||||
console.log(response.status);
|
console.log(response.status);
|
||||||
|
console.log(response.statusText);
|
||||||
console.log(response.headers);
|
console.log(response.headers);
|
||||||
console.log(response.config);
|
console.log(response.config);
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user