method [optional] | string | "GET" | An HTTP Request Method: GET, POST, HEAD, ... |
|---|
json [optional] | boolean | /.json$/.test(url) | If true, "Content-Type" will be set to "application/json", #responseType to "json", and the #response/#responseText will be parsed to a JSON. |
|---|
data [optional] | Any | null | Data to send. |
|---|
send [optional] | function | just.request~send | A custom function to intercept and send the request. |
|---|
async [optional] | boolean | true | "async" param for XMLHttpRequest#open(). |
|---|
user [optional] | string | null | User name to use for authentication purposes. |
|---|
pwd [optional] | string | null | Password to use for authentication purposes. |
|---|
props [optional] | object | just.request~defaultProps | Properties for the xhr instance. |
|---|
headers [optional] | object | just.request~defaultHeaders | Custom headers for the request. |
|---|