Share via


HttpConnectionOptions Class

Definition

Options used to configure a HttpConnection instance.

public ref class HttpConnectionOptions
public class HttpConnectionOptions
type HttpConnectionOptions = class
Public Class HttpConnectionOptions
Inheritance
HttpConnectionOptions

Constructors

HttpConnectionOptions()

Initializes a new instance of the HttpConnectionOptions class.

Properties

AccessTokenProvider

Gets or sets an access token provider that will be called to return a token for each HTTP request.

ApplicationMaxBufferSize

Gets or sets the maximum buffer size for data written by the application before backpressure is applied.

ClientCertificates

Gets or sets a collection of client certificates that will be sent with HTTP requests.

CloseTimeout

Gets or sets a close timeout.

Cookies

Gets or sets a collection of cookies that will be sent with HTTP requests.

Credentials

Gets or sets the credentials used when making HTTP requests.

DefaultTransferFormat

Gets or sets the default TransferFormat to use if StartAsync(CancellationToken) is called instead of StartAsync(TransferFormat, CancellationToken).

Headers

Gets or sets a collection of headers that will be sent with HTTP requests.

HttpMessageHandlerFactory

Gets or sets a delegate for wrapping or replacing the HttpMessageHandlerFactory that will make HTTP requests.

Proxy

Gets or sets the proxy used when making HTTP requests.

SkipNegotiation

Gets or sets a value indicating whether negotiation is skipped when connecting to the server.

TransportMaxBufferSize

Gets or sets the maximum buffer size for data read by the application before backpressure is applied.

Transports

Gets or sets a bitmask combining one or more HttpTransportType values that specify what transports the client should use to send HTTP requests.

Url

Gets or sets the URL used to send HTTP requests.

UseDefaultCredentials

Gets or sets a value indicating whether default credentials are used when making HTTP requests.

UseStatefulReconnect

Setting to enable Stateful Reconnect between client and server, this allows reconnecting that preserves messages sent while disconnected. Also preserves the ConnectionId when the reconnect is successful.

WebSocketConfiguration

Gets or sets a delegate that will be invoked with the ClientWebSocketOptions object used to configure the WebSocket when using the WebSockets transport.

WebSocketFactory

Gets or sets a delegate for wrapping or replacing the WebSocket that will be used for the WebSocket transport.

Applies to