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

Updating README

This commit is contained in:
Matt Zabriskie
2014-08-29 16:59:43 -06:00
parent 0b0ef29be0
commit 5a00ff00e8
+3 -1
View File
@@ -103,13 +103,15 @@ When using the alias methods `url`, `method`, and `data` properties don't need t
### Config
This is the available config options for making requests. Only the `url` is required. Requests will default to `GET` if not specified.
```js
{
// `url` is the server URL that will be used for the request
url: '/user',
// `method` is the request method to be used when making the request
method: 'get',
method: 'get', // default
// `transformRequest` allows changes to the request data before it is sent to the server
// This is only applicable for request methods 'PUT', 'POST', and 'PATCH'