PipelineRequestOptions interface
Settings to initialize a request. Almost equivalent to Partial<PipelineRequest>, but url is mandatory.
Properties
| abort |
Used to abort the request later. |
| body | The HTTP body content (if any) |
| form |
To simulate a browser form post |
| headers | The HTTP headers to use when making the request. |
| keep |
If the connection should be reused. Defaults to true. |
| method | The HTTP method to use when making the request. |
| on |
Callback which fires upon download progress. |
| on |
Callback which fires upon upload progress. |
| proxy |
Proxy configuration. |
| request |
A unique identifier for the request. Used for logging and tracing. |
| span |
Options used to create a span when tracing is enabled. |
| stream |
A list of response status codes whose corresponding PipelineResponse body should be treated as a stream. |
| timeout | The number of milliseconds a request can take before automatically being terminated.
If the request is terminated, an |
| url | The URL to make the request to. |
| with |
If credentials (cookies) should be sent along during an XHR. Defaults to false. |
Property Details
abortSignal
body
formData
headers
keepAlive
If the connection should be reused. Defaults to true.
keepAlive?: boolean
Property Value
boolean
method
onDownloadProgress
Callback which fires upon download progress.
onDownloadProgress?: (progress: TransferProgressEvent) => void
Property Value
(progress: TransferProgressEvent) => void
onUploadProgress
Callback which fires upon upload progress.
onUploadProgress?: (progress: TransferProgressEvent) => void
Property Value
(progress: TransferProgressEvent) => void
proxySettings
requestId
A unique identifier for the request. Used for logging and tracing.
requestId?: string
Property Value
string
spanOptions
Options used to create a span when tracing is enabled.
spanOptions?: SpanOptions
Property Value
streamResponseStatusCodes
A list of response status codes whose corresponding PipelineResponse body should be treated as a stream.
streamResponseStatusCodes?: Set<number>
Property Value
Set<number>
timeout
The number of milliseconds a request can take before automatically being terminated.
If the request is terminated, an AbortError is thrown.
Defaults to 0, which disables the timeout.
timeout?: number
Property Value
number
url
The URL to make the request to.
url: string
Property Value
string
withCredentials
If credentials (cookies) should be sent along during an XHR. Defaults to false.
withCredentials?: boolean
Property Value
boolean