ClientWebSocketOptions.SetRequestHeader Method

.NET Framework 4.6 and 4.5

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

Supported in: 4.6, 4.5
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2015 Microsoft