Table of Contents

Class ClientWebSocketHeaders

Namespace
System.Net.WebSockets
Assembly
System.Net.WebSockets.dll

A Dictionary to store custom Http Headers to use with the ClientWebsocket

public class ClientWebSocketHeaders
Inheritance
ClientWebSocketHeaders
Inherited Members
Extension Methods

Constructors

ClientWebSocketHeaders()

public ClientWebSocketHeaders()

Properties

Count

Gets the number of headers.

public int Count { get; }

Property Value

int

this[string]

Gets a value header or Sets a header value

public string this[string key] { get; set; }

Parameters

key string

Property Value

string

Keys

Gets all header keys.

public string[] Keys { get; }

Property Value

string[]

Values

Gets all header values.

public string[] Values { get; }

Property Value

string[]

Methods

Remove(string)

Removes a header from the dictionary

public void Remove(string value)

Parameters

value string