API / geotoolkit / http / AbstractHttpService / AbstractHttpService
http.AbstractHttpService.AbstractHttpService
Type Aliases
Ƭ Options: Object
default options
| Name | Type | Description |
|---|---|---|
cancel? | Cancel | DeprecatedCancelCallback | Cancellation token. Type of function to receive cancel token is deprecated since 4.0 |
headers? | Record<string, string> | custom headers to be sent |
onprogress? | (progressObject: { loaded: number ; total: number }) => void | a function to be executed to handle progress |
timeout? | number | A timeout in milliseconds to abort a request. If set to 0 (default) a timeout is not created. |
transformrequest? | (request: RequestOptions) => any | a function executed before requests |
transformresponse? | (response: any) => any | a function executed after response |
withcredentials? | boolean | credential options |
Ƭ RequestMethods: "GET" | "HEAD" | "POST" | "PUT" | "DELETE" | "CONNECT" | "OPTIONS" | "TRACE" | "PATCH"
Ƭ RequestOptions: Options & { baseurl?: string ; data?: any ; method?: RequestMethods | Lowercase<RequestMethods> ; params?: Record<string, any> ; responsetype?: RequestResponse ; url?: string }
options all options keys are case insensitive
Ƭ RequestResponse: "" | "arraybuffer" | "blob" | "document" | "json" | "text"
Define request response type