Table of Contents

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 FtpProxyProfile

Proxy 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 FtpSocketStream

The existing socket stream

host string

Host name

port int

Port number

ipVersions FtpIpVersion

IP version to use

token CancellationToken

IP version to use

Returns

Task

ConnectAsync(FtpSocketStream, CancellationToken)

Connects to the server using an existing FtpSocketStream

protected override Task ConnectAsync(FtpSocketStream stream, CancellationToken token)

Parameters

stream FtpSocketStream

The existing socket stream

token CancellationToken

The token that can be used to cancel the entire process

Returns

Task

Create()

Creates a new instance of this class. Useful in FTP proxy classes.

protected override BaseFtpClient Create()

Returns

BaseFtpClient

HandshakeAsync(CancellationToken)

Redefine the first dialog: HTTP Frame for the HTTP 1.1 Proxy

protected override Task HandshakeAsync(CancellationToken token = default)

Parameters

token CancellationToken

Returns

Task