Compartir a través de


ClientWebSocketOptions.SetRequestHeader(String, String) Método

Definición

Crea un encabezado de solicitud HTTP y su valor.

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)

Parámetros

headerName
String

Nombre del encabezado HTTP.

headerValue
String

Valor del encabezado HTTP.

Atributos

Se aplica a