ClientWebSocketOptions.SetRequestHeader(String, String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Creates a HTTP request header and its value.
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)
Parameters
- headerName
- String
The name of the HTTP header.
- headerValue
- String
The value of the HTTP header.
- Attributes
Applies to
Samarbejd med os på GitHub
Kilden til dette indhold kan findes på GitHub, hvor du også kan oprette og gennemse problemer og pullanmodninger. Du kan få flere oplysninger i vores vejledning til bidragydere.