C# 클래스 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.
파일 보기 프로젝트 열기: ayende/Subtext 1 사용 예제들

공개 메소드들

메소드 설명
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.

메소드 상세

PostRequest() 공개 메소드

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.
리턴 string

PostRequest() 공개 메소드

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.
리턴 string