RequestOptions Class

Definition

Options which can be used to control the behavior of a request sent by a client.

public class RequestOptions
type RequestOptions = class
Public Class RequestOptions
Inheritance
System.Object
RequestOptions

Constructors

RequestOptions()

Initializes a new instance of the RequestOptions class.

RequestOptions(Action<HttpMessage>)

Initializes a new instance of the RequestOptions class.

RequestOptions(ResponseStatusOption)

Initializes a new instance of the RequestOptions class using the given RequestOptions.

Properties

CancellationToken

The token to check for cancellation.

PerCallPolicy

A HttpPipelinePolicy to use as part of this operation. This policy will be applied at the start of the underlying HttpPipeline.

StatusOption

Controls under what conditions the operation raises an exception if the underlying response indicates a failure.

Operators

Implicit(ResponseStatusOption to RequestOptions)

Initializes a new instance of the RequestOptions class using the given ResponseStatusOption.

Applies to