Interface: TransportRequest
Defined in: core/src/transport/types.ts:6
One request core hands to a transport: an upload, a manifest, a finalize, a chunk-status or a probe request.
Properties
| Property | Type | Description | Defined in |
|---|---|---|---|
beforeSend? | (native?) => void | Must be called once, right before the body is sent, with the native request object (the XMLHttpRequest for the built-in transport) or undefined. Core uses it to run params(), emit sending and append the file blob last (S3 wants it last). | core/src/transport/types.ts:24 |
body | string | Blob | FormData | null | FormData (uploads), a Blob (binaryBody), a JSON string (manifest, finalize) or null. | core/src/transport/types.ts:14 |
headers | Record<string, string> | Headers to set; empty values are skipped. | core/src/transport/types.ts:12 |
method | string | Upper-case HTTP method. | core/src/transport/types.ts:8 |
timeout | number | null | Milliseconds; null or 0 = none. | core/src/transport/types.ts:16 |
url | string | Absolute or relative request URL. | core/src/transport/types.ts:10 |
withCredentials | boolean | Send cookies cross-origin. | core/src/transport/types.ts:18 |