C# Class Subtext.Akismet.HttpClient

Class used to make the actual HTTP requests.
Yeah, I know you're thinking this is overkill, but it makes it easier to write tests to have this layer of abstraction from the underlying Http request.
显示文件 Open project: ayende/Subtext Class Usage Examples

Public Methods

Method Description
PostRequest ( Uri url, string userAgent, int timeout, string formParameters ) : string

Posts the request and returns a text response. This is all that is needed for Akismet.

PostRequest ( Uri url, string userAgent, int timeout, string formParameters, IWebProxy proxy ) : string

Posts the request.

Method Details

PostRequest() public method

Posts the request and returns a text response. This is all that is needed for Akismet.
public PostRequest ( Uri url, string userAgent, int timeout, string formParameters ) : string
url System.Uri The URL.
userAgent string The user agent.
timeout int The timeout.
formParameters string The properly formatted parameters.
return string

PostRequest() public method

Posts the request.
public PostRequest ( Uri url, string userAgent, int timeout, string formParameters, IWebProxy proxy ) : string
url System.Uri The URL.
userAgent string The user agent.
timeout int The timeout.
formParameters string The form parameters.
proxy IWebProxy The proxy.
return string