C# Class Client.Http.HttpRequest

Http helper class.
Inheritance: IDisposable
Exibir arquivo Open project: MSOpenTech/HTTP-SPEED-PLUS-MOBILITY Class Usage Examples

Public Methods

Method Description
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.

Private Methods

Method Description
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.

Method Details

Dispose() public method

Dispose this instance.
public Dispose ( ) : void
return void

GetFile() public method

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.
return Client.HttpBenchmark.HttpTrafficLog

HttpRequest() public method

Initializes a new instance of the HttpRequest class.
public HttpRequest ( int serverLatency, bool useHttp2Handshake ) : System
serverLatency int Server latency.
useHttp2Handshake bool
return System