Sdílet prostřednictvím


ClientWebSocketOptions.SetRequestHeader(String, String) Metoda

Definice

Vytvoří hlavičku požadavku HTTP a její hodnotu.

public:
 void SetRequestHeader(System::String ^ headerName, System::String ^ headerValue);
[System.Runtime.Versioning.UnsupportedOSPlatform("browser")]
public void SetRequestHeader (string headerName, string? headerValue);
public void SetRequestHeader (string headerName, string headerValue);
[<System.Runtime.Versioning.UnsupportedOSPlatform("browser")>]
member this.SetRequestHeader : string * string -> unit
member this.SetRequestHeader : string * string -> unit
Public Sub SetRequestHeader (headerName As String, headerValue As String)

Parametry

headerName
String

Název hlavičky HTTP.

headerValue
String

Hodnota hlavičky HTTP.

Atributy

Platí pro