C# Class ThoughtWorksCoreLib.AuthenticatingWeb

Inheritance: IWeb
Mostrar archivo Open project: ThoughtWorksStudios/mingle.net Class Usage Examples

Public Methods

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

Private Methods

Method Description
Authenticate ( HttpWebRequest request ) : void

Add credentials to the request

Method Details

AuthenticatingWeb() public method

Constructs an AutnenticatingWeb that is used to wrap an HttpWebRequest with authentication
public AuthenticatingWeb ( string login, string password ) : System
login string
password string
return System

Delete() public method

Performns a DELETE and returns HttpWebResponse
public Delete ( string url ) : IResponse
url string
return IResponse

Get() public method

Performns a GET and returns HttpWebResponse
public Get ( string url ) : IResponse
url string
return IResponse

Get() public method

Performns a GET and returns HttpWebResponse
public Get ( string url, IEnumerable data ) : IResponse
url string
data IEnumerable
return IResponse

Post() public method

Performns a POST and returns HttpWebResponse
public Post ( string url, IEnumerable data ) : IResponse
url string
data IEnumerable
return IResponse

Put() public method

Performns a PUT and returns HttpWebResponse
public Put ( string url, IEnumerable data ) : IResponse
url string
data IEnumerable
return IResponse