Class AsyncFtpClientHttp11Proxy
- Namespace
- FluentFTP.Proxy.AsyncProxy
- Assembly
- FluentFTP.dll
A FTP client with a HTTP 1.1 proxy implementation.
public class AsyncFtpClientHttp11Proxy : AsyncFtpClientProxy, IInternalFtpClient, IAsyncFtpClient, IDisposable, IAsyncDisposable, IBaseFtpClient
- Inheritance
-
AsyncFtpClientHttp11Proxy
- Implements
- Inherited Members
- Extension Methods
Constructors
AsyncFtpClientHttp11Proxy(FtpProxyProfile)
A FTP client with a HTTP 1.1 proxy implementation
public AsyncFtpClientHttp11Proxy(FtpProxyProfile proxy)
Parameters
proxy
FtpProxyProfileProxy information
Methods
ConnectAsync(FtpSocketStream, string, int, FtpIpVersion, CancellationToken)
Connects to the server using an existing FtpSocketStream
protected override Task ConnectAsync(FtpSocketStream stream, string host, int port, FtpIpVersion ipVersions, CancellationToken token)
Parameters
stream
FtpSocketStreamThe existing socket stream
host
stringHost name
port
intPort number
ipVersions
FtpIpVersionIP version to use
token
CancellationTokenIP version to use
Returns
ConnectAsync(FtpSocketStream, CancellationToken)
Connects to the server using an existing FtpSocketStream
protected override Task ConnectAsync(FtpSocketStream stream, CancellationToken token)
Parameters
stream
FtpSocketStreamThe existing socket stream
token
CancellationTokenThe token that can be used to cancel the entire process
Returns
Create()
Creates a new instance of this class. Useful in FTP proxy classes.
protected override BaseFtpClient Create()
Returns
HandshakeAsync(CancellationToken)
Redefine the first dialog: HTTP Frame for the HTTP 1.1 Proxy
protected override Task HandshakeAsync(CancellationToken token = default)
Parameters
token
CancellationToken