AjaxOptions
types.AjaxOptions
successStatuses
successStatuses: number[]
Defined in
method
Optional method: string
The HTTP method to use for the request
(e.g. "POST", "GET", "PUT")
Defined in
url
Optional url: string
A string containing the URL which the request is sent.
Defined in
data
data: DataVariant
Data be sent to the server.
It is converted to a query string, if not already a string. It's appended to the url for GET-requests.
Defined in
contentType
Optional contentType: string | false
When sending data to the server, use this content type. Default is "application/x-www-form-urlencoded;
charset=UTF-8", which is fine for most cases
Defined in
headers
Optional headers: null | IDictionary<string> | (this: IAjax<any>) => CanPromise<null | IDictionary<string>>
An object (or a function which returns an object) of additional header key/value pairs to send along
with requests using the XMLHttpRequest transport. Uses in FileBrowser
and Uploader
Defined in
responseType
Optional responseType: "" | "text" | "document" | "arraybuffer" | "blob" | "json"
Defined in
withCredentials
Optional withCredentials: boolean
Enable or disable Access-Control-Allow-Credentials client side. Useful for cross domain requests
Defined in
queryBuild
Optional queryBuild: (this: IAjax<any>, obj: string | FormData | IDictionary<string | object>, prefix?: string) => string | FormData
Type declaration
(this, obj, prefix?): string | FormData
Parameters
| Name | Type |
|---|---|
this |
IAjax<any> |
obj |
string | FormData | IDictionary<string | object> |
prefix? |
string |
Returns
string | FormData
Defined in
xhr
Optional xhr: () => XMLHttpRequest
Type declaration
(): XMLHttpRequest
Returns
Defined in
onProgress
Optional onProgress: (percentage: number) => void
Type declaration
(percentage): void
Parameters
| Name | Type |
|---|---|
percentage |
number |
Returns
void
Defined in
jodit/src/types/ajax.d.ts:98