Class SshHttpClientBuilderExtensions
- Namespace
- Microsoft.Extensions.DependencyInjection
- Assembly
- SshSharp.Extensions.DependencyInjection.dll
Sends an HttpClient's requests through an SSH endpoint's shared connection.
public static class SshHttpClientBuilderExtensions
- Inheritance
-
SshHttpClientBuilderExtensions
- Inherited Members
Methods
- UseSshTunnel(IHttpClientBuilder, string, Action<SocketsHttpHandler>?)
Makes the named or typed HttpClient connect through the shared connection of the SSH endpoint
endpointName(ISshConnectionProvider): each of its TCP connections is adirect-tcpipchannel from the server, asssh -Lopens, so it reaches services only the server reaches, such as an internal API behind a bastion. Host names in request URIs are resolved by the server. TLS still runs end to end, from here to the service.