mirror of
https://github.com/tenrok/axios.git
synced 2026-06-20 20:00:40 +03:00
Updating README
This commit is contained in:
@@ -18,9 +18,11 @@ Promise based HTTP client for the browser and node.js
|
|||||||
- Automatic transforms for JSON data
|
- Automatic transforms for JSON data
|
||||||
- Client side support for protecting against [XSRF](http://en.wikipedia.org/wiki/Cross-site_request_forgery)
|
- Client side support for protecting against [XSRF](http://en.wikipedia.org/wiki/Cross-site_request_forgery)
|
||||||
|
|
||||||
## Semver
|
## Browser Support
|
||||||
|
|
||||||
Until axios reaches a `1.0` release, breaking changes will be released with a new minor version. For example `0.5.1`, and `0.5.4` will have the same API, but `0.6.0` will have breaking changes.
|
 |  |  |  |  |
|
||||||
|
--- | --- | --- | --- | --- |
|
||||||
|
Latest ✔ | Latest ✔ | Latest ✔ | Latest ✔ | 8+ ✔ |
|
||||||
|
|
||||||
## Installing
|
## Installing
|
||||||
|
|
||||||
@@ -36,17 +38,6 @@ Using npm:
|
|||||||
$ npm install axios
|
$ npm install axios
|
||||||
```
|
```
|
||||||
|
|
||||||
## Browser Support
|
|
||||||
|
|
||||||
 |  |  |  |  |
|
|
||||||
--- | --- | --- | --- | --- |
|
|
||||||
Latest ✔ | Latest ✔ | Latest ✔ | Latest ✔ | 8+ ✔ |
|
|
||||||
|
|
||||||
## Promises
|
|
||||||
|
|
||||||
axios depends on a native ES6 Promise implementation to be [supported](http://caniuse.com/promises).
|
|
||||||
If your environment doesn't support ES6 Promises, you can [polyfill](https://github.com/jakearchibald/es6-promise).
|
|
||||||
|
|
||||||
## Example
|
## Example
|
||||||
|
|
||||||
Performing a `GET` request
|
Performing a `GET` request
|
||||||
@@ -291,7 +282,16 @@ axios.get('/user/12345')
|
|||||||
});
|
});
|
||||||
```
|
```
|
||||||
|
|
||||||
## TypeScript Definition
|
## Semver
|
||||||
|
|
||||||
|
Until axios reaches a `1.0` release, breaking changes will be released with a new minor version. For example `0.5.1`, and `0.5.4` will have the same API, but `0.6.0` will have breaking changes.
|
||||||
|
|
||||||
|
## Promises
|
||||||
|
|
||||||
|
axios depends on a native ES6 Promise implementation to be [supported](http://caniuse.com/promises).
|
||||||
|
If your environment doesn't support ES6 Promises, you can [polyfill](https://github.com/jakearchibald/es6-promise).
|
||||||
|
|
||||||
|
## TypeScript
|
||||||
axios includes a [TypeScript](http://typescriptlang.org) definition.
|
axios includes a [TypeScript](http://typescriptlang.org) definition.
|
||||||
```typescript
|
```typescript
|
||||||
/// <reference path="axios.d.ts" />
|
/// <reference path="axios.d.ts" />
|
||||||
|
|||||||
Reference in New Issue
Block a user