Skip to content

RemoteTerminalOptions

Namespace: Hex1b

Assembly: Hex1b.dll

Configures a remote terminal WebSocket connection and its opening HTTP request.

csharp
public sealed class RemoteTerminalOptions

Inheritance

ObjectRemoteTerminalOptions

Methods

ConfigureHttpHandler(Action<SocketsHttpHandler>)

Adds a callback that configures the HTTP handler used to send the opening request.

Parameters:

csharp
public void ConfigureHttpHandler(Action<SocketsHttpHandler> configure)

ConfigureRequest(Action<HttpRequestMessage>)

Adds a callback that can mutate each outgoing WebSocket opening request.

Parameters:

csharp
public void ConfigureRequest(Action<HttpRequestMessage> configure)

ConfigureWebSocket(Action<ClientWebSocketOptions>)

Adds a callback that configures the underlying WebSocket before connecting.

Parameters:

csharp
public void ConfigureWebSocket(Action<ClientWebSocketOptions> configure)

SetRequestHeader(string, string?)

Adds or replaces a header on the WebSocket opening request.

Parameters:

  • headerName (String): The name of the header to configure.
  • headerValue (String): The header value, or null to remove it.
csharp
public void SetRequestHeader(string headerName, string? headerValue)

Released under the MIT License.