C# Class GitHubFeeds.Helpers.HttpWebRequestExtensions

Show file Open project: bgrainger/GitHubFeeds

Public Methods

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

Method Details

GetHttpResponse() public static method

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.
return System.Net.HttpWebResponse

GetHttpResponseAsync() public static method

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