C# Class Client.Http.HttpRequest

Http helper class.
Inheritance: IDisposable
Afficher le fichier Open project: MSOpenTech/HTTP-SPEED-PLUS-MOBILITY Class Usage Examples

Méthodes publiques

Méthode 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

Méthode 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 méthode

Dispose this instance.
public Dispose ( ) : void
Résultat void

GetFile() public méthode

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.
Résultat Client.HttpBenchmark.HttpTrafficLog

HttpRequest() public méthode

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