C# Класс ThoughtWorksCoreLib.AuthenticatingWeb

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

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

Метод Описание
AuthenticatingWeb ( string login, string password ) : System

Constructs an AutnenticatingWeb that is used to wrap an HttpWebRequest with authentication

Delete ( string url ) : IResponse

Performns a DELETE and returns HttpWebResponse

Get ( string url ) : IResponse

Performns a GET and returns HttpWebResponse

Get ( string url, IEnumerable data ) : IResponse

Performns a GET and returns HttpWebResponse

Post ( string url, IEnumerable data ) : IResponse

Performns a POST and returns HttpWebResponse

Put ( string url, IEnumerable data ) : IResponse

Performns a PUT and returns HttpWebResponse

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

Метод Описание
Authenticate ( HttpWebRequest request ) : void

Add credentials to the request

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

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

Constructs an AutnenticatingWeb that is used to wrap an HttpWebRequest with authentication
public AuthenticatingWeb ( string login, string password ) : System
login string
password string
Результат System

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

Performns a DELETE and returns HttpWebResponse
public Delete ( string url ) : IResponse
url string
Результат IResponse

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

Performns a GET and returns HttpWebResponse
public Get ( string url ) : IResponse
url string
Результат IResponse

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

Performns a GET and returns HttpWebResponse
public Get ( string url, IEnumerable data ) : IResponse
url string
data IEnumerable
Результат IResponse

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

Performns a POST and returns HttpWebResponse
public Post ( string url, IEnumerable data ) : IResponse
url string
data IEnumerable
Результат IResponse

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

Performns a PUT and returns HttpWebResponse
public Put ( string url, IEnumerable data ) : IResponse
url string
data IEnumerable
Результат IResponse