WebTransportClientOptions Class

public sealed class WebTransportClientOptions

Constructors

NameDescription
WebTransportClientOptions()

WebTransportClientOptions()

WebTransportClientOptions.cs
public WebTransportClientOptions()

No documentation is available.

Properties

NameDescription
CongestionControlAlgorithmGets or sets the congestion control algorithm of the connection.
HeadersGets the headers added to the CONNECT request, such as origin. Names are lowercase.
IdleTimeoutGets or sets the time without activity after which the connection is closed. TimeSpan.Zero keeps the default of MsQuic.
MaxIncomingStreamsGets or sets the number of streams the server can open at the same time, of each type. The default is 100.
ProtocolsGets the application protocols the client offers, sent in the wt-available-protocols header. The server picks one in WebTransportSession.Protocol.
ReceivedDatagramQueueCapacityGets or sets the number of received datagrams kept until WebTransportSession.ReceiveDatagramAsync reads them; the oldest are dropped. The default is 1024.
RemoteCertificateValidationCallbackGets or sets the callback that validates the certificate of the server, when WebTransportClientOptions.ServerCertificateHashes is empty.
ServerCertificateHashesGets the SHA-256 hashes of the certificates the client accepts. When the list is not empty, the certificate of the server is accepted when its hash is in the list, instead of being validated against the trusted roots, as the serverCertificateHashes option of the browsers does.

CongestionControlAlgorithm

WebTransportClientOptions.cs

Gets or sets the congestion control algorithm of the connection.

public MsQuicCongestionControlAlgorithm CongestionControlAlgorithm { get; set; }

Gets the headers added to the CONNECT request, such as origin. Names are lowercase.

public IList<KeyValuePair<string, string>> Headers { get; }

Gets or sets the time without activity after which the connection is closed. TimeSpan.Zero keeps the default of MsQuic.

public TimeSpan IdleTimeout { get; set; }

Property value

TimeSpan

Gets or sets the number of streams the server can open at the same time, of each type. The default is 100.

public int MaxIncomingStreams { get; set; }

Property value

int

Gets the application protocols the client offers, sent in the wt-available-protocols header. The server picks one in WebTransportSession.Protocol.

public IList<string> Protocols { get; }

Property value

IList<string>

ReceivedDatagramQueueCapacity

WebTransportClientOptions.cs

Gets or sets the number of received datagrams kept until WebTransportSession.ReceiveDatagramAsync reads them; the oldest are dropped. The default is 1024.

public int ReceivedDatagramQueueCapacity { get; set; }

Property value

int

RemoteCertificateValidationCallback

WebTransportClientOptions.cs

Gets or sets the callback that validates the certificate of the server, when WebTransportClientOptions.ServerCertificateHashes is empty.

public RemoteCertificateValidationCallback? RemoteCertificateValidationCallback { get; set; }

ServerCertificateHashes

WebTransportClientOptions.cs

Gets the SHA-256 hashes of the certificates the client accepts. When the list is not empty, the certificate of the server is accepted when its hash is in the list, instead of being validated against the trusted roots, as the serverCertificateHashes option of the browsers does.

public IList<byte[]> ServerCertificateHashes { get; }

Property value

IList<byte[]>