| Method | Type | Default | Description |
|---|---|---|---|
| url | string | - | The url to make the Async request to. |
| type | string | "GET" | The type of request e.g GET or POST. |
| Async | boolean | true | A value that specifies if the request be asynchronous or not. True is Asynchronous and default. |
| beforeSend(xhr) | function | - | A function that is called before the request is sent. |
| cache | boolean | true | Value indicating if the response be cached. True means the response be cached. |
| dataType | string | "json" | Specifies the type of data to accept from server. |
| error(xhr,status,error) | function | - | A function that is called when an error occurs during the request. |
| success(xhr,status,error) | function | - | A function that is called when response arrives to the browser. |
| headers | object | {} | An object of additional header key/value pairs to send along with requests using the XMLHttpRequest transport. |
Last active
November 3, 2017 12:45
-
-
Save vickonrails/f34385987effbff49cfd4aa9edf720ca to your computer and use it in GitHub Desktop.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment