C# Class JSIStudios.SimpleRESTServices.Client.Response

Datei anzeigen Open project: JSIStudios/SimpleRestServices Class Usage Examples

Public Methods

Method Description
Response ( HttpStatusCode statusCode, IList headers, string rawBody ) : System

Initializes a new instance of the Response class with the given HTTP status code, headers, and raw body.

Response ( HttpStatusCode responseCode, string status, IList headers, string rawBody ) : System

Initializes a new instance of the Response class with the given HTTP status code, status, headers, and raw body.

Method Details

Response() public method

Initializes a new instance of the Response class with the given HTTP status code, headers, and raw body.
public Response ( HttpStatusCode statusCode, IList headers, string rawBody ) : System
statusCode HttpStatusCode The HTTP status code.
headers IList A collection of all HTTP headers included with this response.
rawBody string /// The raw body of this HTTP response as a text string. When included in the response, this /// value should be loaded with the encoding specified in the Content-Encoding and/or /// Content-Type HTTP headers. ///
return System

Response() public method

Initializes a new instance of the Response class with the given HTTP status code, status, headers, and raw body.
public Response ( HttpStatusCode responseCode, string status, IList headers, string rawBody ) : System
responseCode HttpStatusCode The HTTP status code.
status string A string representation of the HTTP status code.
headers IList A collection of all HTTP headers included with this response.
rawBody string /// The raw body of this HTTP response as a text string. When included in the response, this /// value should be loaded with the encoding specified in the Content-Encoding and/or /// Content-Type HTTP headers. ///
return System