C# Класс Client.Http.HttpRequest

Http helper class.
Наследование: IDisposable
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
Dispose ( ) : void

Dispose this instance.

GetFile ( string uri ) : Client.HttpBenchmark.HttpTrafficLog

Get files via http request. Public interface to call for top file of the tree

HttpRequest ( int serverLatency, bool useHttp2Handshake ) : System

Initializes a new instance of the HttpRequest class.

Приватные методы

Метод Описание
AddNameToDownloadList ( string uri ) : void

Add name to list of files to download

AuthenticateAsClient ( Uri remoteEndpoint, SslStream sslStream ) : bool

Authenticate client.

Get ( Uri uri ) : byte[]

Get files via URI.

GetHeaders ( byte content ) : byte[]

Get headers.

GetNameToDownload ( ) : string

Get next name to download

GetStatus ( byte headers ) : int

Get status from headers.

HttpLoaderProc ( object stateInfo ) : void

Thread proc for file download

NameListMonitorProc ( object stateInfo ) : void

Thread proc for name list monitor

PrivateGetFile ( byte content, string type, Uri requestUri, string uri ) : void

Get files via http request.

Описание методов

Dispose() публичный Метод

Dispose this instance.
public Dispose ( ) : void
Результат void

GetFile() публичный Метод

Get files via http request. Public interface to call for top file of the tree
public GetFile ( string uri ) : Client.HttpBenchmark.HttpTrafficLog
uri string The address site.
Результат Client.HttpBenchmark.HttpTrafficLog

HttpRequest() публичный Метод

Initializes a new instance of the HttpRequest class.
public HttpRequest ( int serverLatency, bool useHttp2Handshake ) : System
serverLatency int Server latency.
useHttp2Handshake bool
Результат System