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

Updating README

This commit is contained in:
mzabriskie
2015-03-13 17:16:00 -06:00
parent 2ce5aa77df
commit bc49510b64
+4
View File
@@ -200,6 +200,9 @@ The response for a request contains the following information.
// `status` is the HTTP status code from the server response
status: 200,
// `statusText` is the HTTP status message from the server response
status: 'OK',
// `headers` the headers that the server responded with
headers: {},
@@ -216,6 +219,7 @@ axios.get('/user/12345')
.then(function(response) {
console.log(response.data);
console.log(response.status);
console.log(response.statusText);
console.log(response.headers);
console.log(response.config);
});