C# Class Simple.Rest.RestResponse

Inheritance: IRestResponse
Mostrar archivo Open project: oriches/Simple.Rest

Public Methods

Method Description
RestResponse ( HttpWebResponse response ) : System

Extracts the properties from the HTTP response.

RestResponse ( HttpWebResponse response, Exception exception ) : System

Extracts the properties from the HTTP response and handles the exception generated during the request.

Method Details

RestResponse() public method

Extracts the properties from the HTTP response.
public RestResponse ( HttpWebResponse response ) : System
response System.Net.HttpWebResponse The HTTP response.
return System

RestResponse() public method

Extracts the properties from the HTTP response and handles the exception generated during the request.
public RestResponse ( HttpWebResponse response, Exception exception ) : System
response System.Net.HttpWebResponse The HTTP response.
exception System.Exception The exception generated during the HTTP request\response.
return System