Extends
Properties
data?
optional data: string;
The data to send as the body of the request
Inherited from
headers?
optional headers: object;
Headers to send with the request. If specifying an array, multiple headers with the same name will be sent
Index signature
[key
: string
]: string
| string
[]
Inherited from
method?
optional method: string;
HTTP method, e.g. "POST". If omitted, GET is used
Inherited from
postResultTo?
optional postResultTo: string;
When present, forwards the result of this request to the specified destination. Instead, this request returns
whether the request will be made and forwarded, and not the actual request.
Note: There is an allow list which limits where the result can be posted. It is currently only to the result of
LinkUnfurlBlockProxy#experimentalStartPDFUpload
responseFormat?
optional responseFormat: SendXHRResponseFormat;
The desired format for the returned response body. Defaults to 'utf8'.
- If 'utf8', the response body will be returned as a string.
- If 'binary', the response body will be returned as a Uint8Array.
Inherited from
streamCallback()?
optional streamCallback: (chunk) => void;
For utf8 responses, you can have the result streamed to you for endpoints that support it.
Parameters
Parameter | Type |
---|---|
chunk | string |
Returns
void
Inherited from
timeoutMs?
optional timeoutMs: number;
If specified, this request should time out after the given number of milliseconds
Inherited from
url
url: string;
URL to request