ClientWebSocketOptions.SetRequestHeader Method (String, String)

.NET Framework (current version)
 

Creates a HTTP request header and its value.

Namespace:   System.Net.WebSockets
Assembly:  System (in System.dll)

public void SetRequestHeader(
	string headerName,
	string headerValue
)

Parameters

headerName
Type: System.String

The name of the HTTP header.

headerValue
Type: System.String

The value of the HTTP header.

.NET Framework
Available since 4.5
Return to top
Show: