Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface PipelineRequest

Package version

Metadata about a request being made by the pipeline.

Hierarchy

  • PipelineRequest

Implemented by

Index

Properties

Optional abortSignal

abortSignal: AbortSignalLike

Used to abort the request later.

Optional agent

agent: Agent

NODEJS ONLY

A Node-only option to provide a custom http.Agent/https.Agent. Does nothing when running in the browser.

Optional allowInsecureConnection

allowInsecureConnection: undefined | false | true

Set to true if the request is sent over HTTP instead of HTTPS

Optional body

The HTTP body content (if any)

Optional disableKeepAlive

disableKeepAlive: undefined | false | true

If the connection should not be reused.

Optional formData

formData: FormDataMap

To simulate a browser form post

headers

headers: HttpHeaders

The HTTP headers to use when making the request.

method

method: HttpMethods

The HTTP method to use when making the request.

Optional onDownloadProgress

onDownloadProgress: undefined | ((progress: TransferProgressEvent) => void)

Callback which fires upon download progress.

Optional onUploadProgress

onUploadProgress: undefined | ((progress: TransferProgressEvent) => void)

Callback which fires upon upload progress.

Optional proxySettings

proxySettings: ProxySettings

Proxy configuration.

requestId

requestId: string

A unique identifier for the request. Used for logging and tracing.

Optional streamResponseStatusCodes

streamResponseStatusCodes: Set<number>

A list of response status codes whose corresponding PipelineResponse body should be treated as a stream.

timeout

timeout: number

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.

Optional tracingOptions

tracingOptions: OperationTracingOptions

Tracing options to use for any created Spans.

url

url: string

The URL to make the request to.

withCredentials

withCredentials: boolean

If credentials (cookies) should be sent along during an XHR. Defaults to false.

Generated using TypeDoc