Share via


PipelineRequest interface

Metadata about a request being made by the pipeline.

Properties

abortSignal

Used to abort the request later.

body

The HTTP body content (if any)

formData

To simulate a browser form post

headers

The HTTP headers to use when making the request.

keepAlive

If the connection should be reused.

method

The HTTP method to use when making the request.

onDownloadProgress

Callback which fires upon download progress.

onUploadProgress

Callback which fires upon upload progress.

proxySettings

Proxy configuration.

requestId

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

spanOptions

Options used to create a span when tracing is enabled.

streamResponseStatusCodes

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 AbortError is thrown. Defaults to 0, which disables the timeout.

url

The URL to make the request to.

withCredentials

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

Property Details

abortSignal

Used to abort the request later.

abortSignal?: AbortSignalLike

Property Value

body

The HTTP body content (if any)

body?: RequestBodyType

Property Value

formData

To simulate a browser form post

formData?: FormDataMap

Property Value

headers

The HTTP headers to use when making the request.

headers: HttpHeaders

Property Value

keepAlive

If the connection should be reused.

keepAlive?: boolean

Property Value

boolean

method

The HTTP method to use when making the request.

method: HttpMethods

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

Proxy configuration.

proxySettings?: ProxySettings

Property Value

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

@azure/core-tracing.SpanOptions

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