Skip to content

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 ​

PropertyTypeDescriptionDefined in
beforeSend?(native?) => voidMust 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
bodystring | Blob | FormData | nullFormData (uploads), a Blob (binaryBody), a JSON string (manifest, finalize) or null.core/src/transport/types.ts:14
headersRecord<string, string>Headers to set; empty values are skipped.core/src/transport/types.ts:12
methodstringUpper-case HTTP method.core/src/transport/types.ts:8
timeoutnumber | nullMilliseconds; null or 0 = none.core/src/transport/types.ts:16
urlstringAbsolute or relative request URL.core/src/transport/types.ts:10
withCredentialsbooleanSend cookies cross-origin.core/src/transport/types.ts:18

Released under the MIT License.