Class HappyEyeballsCallback
A class to provide a System.Net.Http.SocketsHttpHandler.ConnectCallback
method to implement a variant of the Happy
Eyeballs algorithm for HTTP connections to dual-stack servers.
Assembly: Dalamud.dll
View Source
Declaration
public class HappyEyeballsCallback : IDisposable
Implements:
System.IDisposable
Methods
Dispose()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
View Source
Declaration
public void Dispose()
ConnectCallback(SocketsHttpConnectionContext, CancellationToken)
The connection callback to provide to a System.Net.Http.SocketsHttpHandler
.
View Source
Declaration
public ValueTask<Stream> ConnectCallback(SocketsHttpConnectionContext context, CancellationToken token)
Returns
System.Threading.Tasks.ValueTask<System.IO.Stream>
: Returns a Stream for consumption by HttpClient.
Parameters
Type | Name | Description |
---|---|---|
System.Net.Http.SocketsHttpConnectionContext | context | The context for an HTTP connection. |
System.Threading.CancellationToken | token | The cancellation token to abort this request. |
Implements
System.IDisposable