C# 클래스 GitHubFeeds.Helpers.HttpWebRequestExtensions

파일 보기 프로젝트 열기: bgrainger/GitHubFeeds

공개 메소드들

메소드 설명
GetHttpResponse ( this request, IAsyncResult asyncResult ) : HttpWebResponse

Gets the HttpWebResponse from an Internet resource.

This method does not throw a WebException for "error" HTTP status codes; the caller should check the HttpWebResponse.StatusCode property to determine how to handle the response.

See Using If-Modified-Since in HTTP Requests.

GetHttpResponseAsync ( this request ) : Task

Returns a Task{HttpWebResponse} that wraps a response to an Internet request.

메소드 상세

GetHttpResponse() 공개 정적인 메소드

Gets the HttpWebResponse from an Internet resource.

This method does not throw a WebException for "error" HTTP status codes; the caller should check the HttpWebResponse.StatusCode property to determine how to handle the response.

See Using If-Modified-Since in HTTP Requests.

public static GetHttpResponse ( this request, IAsyncResult asyncResult ) : HttpWebResponse
request this The request.
asyncResult IAsyncResult The async result.
리턴 System.Net.HttpWebResponse

GetHttpResponseAsync() 공개 정적인 메소드

Returns a Task{HttpWebResponse} that wraps a response to an Internet request.
public static GetHttpResponseAsync ( this request ) : Task
request this The .
리턴 Task