Skip to main content
Serves a connector’s calls over HTTP, as POST /{call}, where its host reaches it.
Implements: IAsyncDisposable

Fields

string
required
The prefix of each header the caller’s auth resolved to, as Connector-Auth-Authorization.
string
required
The header naming the connection a call is for.
string
required
Where a connector listens: 127.0.0.1:7001, or unix:/path/to.sock.
string
required
The header carrying the connection’s values that are not secret, as a JSON object.

Properties

string
required
Where the binding listens, with the port it was given.

Methods

DisposeAsync()

Stops serving.

Returns

ValueTask

StartAsync()

Starts serving a connector’s calls.

Parameters

object
required
Func<String,ConnectionContext>
required
string
required
CancellationToken
required
ILogger

Returns

ConnectorBinding

WaitAsync()

Serves until the token cancels.

Parameters

CancellationToken
required

Returns

Task