Default HTTP headers for all requests. You can add specific headers at any time.
The following headers are added automatically:
Authorization
- Added after user log in.Content-Type
- Added before sending POST
and PUT
request according the request body.REST API server URL.
Current logged in user ID.
True
if the current logged in user is and administrator.
Sends the DELETE
request to the specified endpoint.
Endpoint relative path.
Optional
init: RequestInitA set of options that can be used to configure a fetch request. See RequestInit for more details.
Downloads the specified file from the server.
Download endpoint relative path.
Optional
onProgress: (progress: number, chunk: Uint8Array) => voidDownload progress callback.
Optional
init: RequestInitA set of options that can be used to configure a fetch request. See RequestInit for more details.
Downloads a part of file from the server.
Download endpoint relative path.
Reserved, do not use.
A ranges of resource file contents to download.
Optional
onProgress: (progress: number, chunk: Uint8Array, requestId: number) => voidDownload progress callback.
Optional
init: RequestInitA set of options that can be used to configure a fetch request. See RequestInit for more details.
Sends the GET
request to the specified endpoint.
Endpoint relative path.
Optional
init: RequestInitA set of options that can be used to configure a fetch request. See RequestInit for more details.
Sends the POST
request to the specified endpoint.
Endpoint relative path.
Optional
body: object | BodyInitRequest body. Can be FormData, ArrayBuffer, Blob, JSON object or plain text.
Optional
init: RequestInitA set of options that can be used to configure a fetch request. See RequestInit for more details.
Sends the PUT
request to the specified endpoint.
Endpoint relative path.
Optional
body: object | BodyInitRequest body. Can be FormData, ArrayBuffer, Blob, JSON object or plain text.
Optional
init: RequestInitA set of options that can be used to configure a fetch request. See RequestInit for more details.
Upload a file to the server.
Upload endpoint relative path.
Web API File object are
generally retrieved from a FileList
object returned as a result of a user selecting files using the HTML <input>
element.
Optional
onProgress: (progress: number) => voidUpload progress callback.
Optional
init: RequestInitA set of options that can be used to configure a fetch request. See RequestInit for more details.
Defines the HTTP client used to send requests to the REST API server.