PipelineRequest interface
Metadata about a request being made by the pipeline.
Properties
abort |
Used to abort the request later. |
agent | NODEJS ONLY A Node-only option to provide a custom |
allow |
Set to true if the request is sent over HTTP instead of HTTPS |
body | The HTTP body content (if any) |
disable |
If the connection should not be reused. |
enable |
BROWSER ONLY A browser only option to enable browser Streams. If this option is set and a response is a stream
the response will have a property Default value is false |
form |
To simulate a browser form post |
headers | The HTTP headers to use when making the request. |
method | The HTTP method to use when making the request. |
multipart |
Body for a multipart 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. |
stream |
A list of response status codes whose corresponding PipelineResponse body should be treated as a stream. When streamResponseStatusCodes contains the value Number.POSITIVE_INFINITY any status would be treated as a stream. |
timeout | The number of milliseconds a request can take before automatically being terminated.
If the request is terminated, an |
tls |
Settings for configuring TLS authentication |
tracing |
Tracing options to use for any created Spans. |
url | The URL to make the request to. |
with |
Indicates whether the user agent should send cookies from the other domain in the case of cross-origin requests. Defaults to false. |
Property Details
abortSignal
agent
NODEJS ONLY
A Node-only option to provide a custom http.Agent
/https.Agent
.
Does nothing when running in the browser.
agent?: Agent
Property Value
allowInsecureConnection
Set to true if the request is sent over HTTP instead of HTTPS
allowInsecureConnection?: boolean
Property Value
boolean
body
disableKeepAlive
If the connection should not be reused.
disableKeepAlive?: boolean
Property Value
boolean
enableBrowserStreams
BROWSER ONLY
A browser only option to enable browser Streams. If this option is set and a response is a stream
the response will have a property browserStream
instead of blobBody
which will be undefined.
Default value is false
enableBrowserStreams?: boolean
Property Value
boolean
formData
headers
method
multipartBody
Body for a multipart request.
multipartBody?: MultipartRequestBody
Property Value
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
streamResponseStatusCodes
A list of response status codes whose corresponding PipelineResponse body should be treated as a stream. When streamResponseStatusCodes contains the value Number.POSITIVE_INFINITY any status would 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
tlsSettings
tracingOptions
Tracing options to use for any created Spans.
tracingOptions?: OperationTracingOptions
Property Value
url
The URL to make the request to.
url: string
Property Value
string
withCredentials
Indicates whether the user agent should send cookies from the other domain in the case of cross-origin requests. Defaults to false.
withCredentials: boolean
Property Value
boolean