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

Показать файл Открыть проект Примеры использования класса

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

Метод Описание
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

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

Метод Описание
AcceptAllCertifications ( object sender, X509Certificate certificate, X509Chain chain, SslPolicyErrors sslpolicyerrors ) : bool
SetupAuthentication ( ) : void
SetupBody ( ) : void
SetupClientCertificates ( ) : void
SetupData ( ) : void
SetupHeader ( ) : void
SetupMultiPartBody ( ) : void
SetupPutFilename ( ) : void

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

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

public AddExtraHeader ( string header, object value ) : void
header string
value object
Результат void

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

public HttpRequest ( IEncoder encoder ) : System
encoder IEncoder
Результат System

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

public PrepareRequest ( ) : HttpWebRequest
Результат System.Net.HttpWebRequest

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

public SetBasicAuthentication ( string username, string password ) : void
username string
password string
Результат void

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

public SetCacheControlToNoCache ( ) : void
Результат void

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

public SetCacheControlWithMaxAge ( System.TimeSpan maxAge ) : void
maxAge System.TimeSpan
Результат void

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

public SetCacheControlWithMaxAgeAndMaxStale ( System.TimeSpan maxAge, System.TimeSpan maxStale ) : void
maxAge System.TimeSpan
maxStale System.TimeSpan
Результат void

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

public SetCacheControlWithMaxAgeAndMinFresh ( System.TimeSpan maxAge, System.TimeSpan minFresh ) : void
maxAge System.TimeSpan
minFresh System.TimeSpan
Результат void