C# Class EasyHttp.Http.HttpRequest

ファイルを表示 Open project: hhariri/EasyHttp Class Usage Examples

Public Methods

Method 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

Method 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 method

public AddExtraHeader ( string header, object value ) : void
header string
value object
return void

HttpRequest() public method

public HttpRequest ( IEncoder encoder ) : System
encoder IEncoder
return System

PrepareRequest() public method

public PrepareRequest ( ) : HttpWebRequest
return System.Net.HttpWebRequest

SetBasicAuthentication() public method

public SetBasicAuthentication ( string username, string password ) : void
username string
password string
return void

SetCacheControlToNoCache() public method

public SetCacheControlToNoCache ( ) : void
return void

SetCacheControlWithMaxAge() public method

public SetCacheControlWithMaxAge ( System.TimeSpan maxAge ) : void
maxAge System.TimeSpan
return void

SetCacheControlWithMaxAgeAndMaxStale() public method

public SetCacheControlWithMaxAgeAndMaxStale ( System.TimeSpan maxAge, System.TimeSpan maxStale ) : void
maxAge System.TimeSpan
maxStale System.TimeSpan
return void

SetCacheControlWithMaxAgeAndMinFresh() public method

public SetCacheControlWithMaxAgeAndMinFresh ( System.TimeSpan maxAge, System.TimeSpan minFresh ) : void
maxAge System.TimeSpan
minFresh System.TimeSpan
return void