C# Class GitHubFeeds.Helpers.HttpWebRequestExtensions

Afficher le fichier Open project: bgrainger/GitHubFeeds

Méthodes publiques

Méthode 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 méthode

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.
Résultat System.Net.HttpWebResponse

GetHttpResponseAsync() public static méthode

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