mirror of
https://github.com/tenrok/axios.git
synced 2026-06-20 20:00:40 +03:00
Updating README
This commit is contained in:
@@ -103,9 +103,13 @@ When using the alias methods `url`, `method`, and `data` properties don't need t
|
|||||||
firstName: 'Fred'
|
firstName: 'Fred'
|
||||||
},
|
},
|
||||||
|
|
||||||
|
// `withCredentials` indicates whether or not cross-site Access-Control requests
|
||||||
|
// should be made using credentials
|
||||||
withCredentials: true,
|
withCredentials: true,
|
||||||
|
|
||||||
responseType: 'json' // default
|
// `responseType` indicates the type of data that the server will responsd with
|
||||||
|
// options are 'arraybuffer', 'blob', 'document', 'json', 'text'
|
||||||
|
responseType: 'json'
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user