C# Class EasyHttp.Http.HttpRequest

Afficher le fichier Open project: hhariri/EasyHttp Class Usage Examples

Méthodes publiques

Méthode Description
AddExtraHeader ( string header, object value ) : void
HttpRequest ( IEncoder encoder ) : System
PrepareRequest ( ) : HttpWebRequest
SetBasicAuthentication ( string username, string password ) : void
SetCacheControlToNoCache ( ) : void
SetCacheControlWithMaxAge ( System.TimeSpan maxAge ) : void
SetCacheControlWithMaxAgeAndMaxStale ( System.TimeSpan maxAge, System.TimeSpan maxStale ) : void
SetCacheControlWithMaxAgeAndMinFresh ( System.TimeSpan maxAge, System.TimeSpan minFresh ) : void

Private Methods

Méthode Description
AcceptAllCertifications ( object sender, X509Certificate certificate, X509Chain chain, SslPolicyErrors sslpolicyerrors ) : bool
SetupAuthentication ( ) : void
SetupBody ( ) : void
SetupClientCertificates ( ) : void
SetupData ( ) : void
SetupHeader ( ) : void
SetupMultiPartBody ( ) : void
SetupPutFilename ( ) : void

Method Details

AddExtraHeader() public méthode

public AddExtraHeader ( string header, object value ) : void
header string
value object
Résultat void

HttpRequest() public méthode

public HttpRequest ( IEncoder encoder ) : System
encoder IEncoder
Résultat System

PrepareRequest() public méthode

public PrepareRequest ( ) : HttpWebRequest
Résultat System.Net.HttpWebRequest

SetBasicAuthentication() public méthode

public SetBasicAuthentication ( string username, string password ) : void
username string
password string
Résultat void

SetCacheControlToNoCache() public méthode

public SetCacheControlToNoCache ( ) : void
Résultat void

SetCacheControlWithMaxAge() public méthode

public SetCacheControlWithMaxAge ( System.TimeSpan maxAge ) : void
maxAge System.TimeSpan
Résultat void

SetCacheControlWithMaxAgeAndMaxStale() public méthode

public SetCacheControlWithMaxAgeAndMaxStale ( System.TimeSpan maxAge, System.TimeSpan maxStale ) : void
maxAge System.TimeSpan
maxStale System.TimeSpan
Résultat void

SetCacheControlWithMaxAgeAndMinFresh() public méthode

public SetCacheControlWithMaxAgeAndMinFresh ( System.TimeSpan maxAge, System.TimeSpan minFresh ) : void
maxAge System.TimeSpan
minFresh System.TimeSpan
Résultat void