packages/base/src/lib/util/xhr.ts
XMLHttpRequest configuration having the following parameters url: the path to the request, mandatory method: possible http methods: GET, POST, PUT, PATCH, DELETE, etc responseType: arraybuffer, blob, document, json, text or empty string headers: object containing headers as name: value pairs body: request body withCredentials: True when credentials are to be included in a cross-origin request. False otherwise. timeout - time in milliseconds. A non-zero value will terminate the execution after the given time has passed
Properties |
|
| body |
body:
|
Type : Document | XMLHttpRequestBodyInit
|
| Optional |
| headers |
headers:
|
Type : literal type
|
| Optional |
| method |
method:
|
Type : string
|
| Optional |
| responseType |
responseType:
|
Type : XMLHttpRequestResponseType
|
| Optional |
| timeout |
timeout:
|
Type : number
|
| Optional |
| url |
url:
|
Type : string
|
| withCredentials |
withCredentials:
|
Type : boolean
|
| Optional |