Skip to end of metadata
Go to start of metadata

Defines data member for rest response.

Definition

public interface IRestResponse

Summary

The following table summarizes the members exposed in this interface.

Properties

Content Gets or sets the string representation of response content
ContentEncoding Gets or sets the encoding of the response content
ContentLength Gets or sets the ;ength in bytes of the response content
ContentType Gets or sets the MIME content type of response
Cookies Gets or sets the cookies returned by server with the response
ErrorException Gets or sets the exception thrown during the request, if any
ErrorMessage Gets or sets the HTTP error generated while attempting request
Headers Gets or sets the headers returned by server with the response
RawBytes Gets or sets the response content
Request Gets or sets the RestRequest that was made to get this RestResponse
ResponseStatus Gets or sets the status of the request. Will return Error for transport errors. HTTP errors will still return ResponseStatus.Completed, check StatusCode instead
ResponseUri Gets or sets the URL that actually responded to the content (different from request if redirected)
Server Gets or sets the HttpWebResponse.Server
StatusCode Gets or sets the HTTP response status code
StatusDescription Gets or sets the description of HTTP status returned

Properties

string Content { get; set; }

Gets or sets the string representation of response content

string ContentEncoding { get; set; }

Gets or sets the encoding of the response content

long ContentLength { get; set; }

Gets or sets the ;ength in bytes of the response content

string ContentType { get; set; }

Gets or sets the MIME content type of response

IList<RestResponseCookie> Cookies { get; }

Gets or sets the cookies returned by server with the response

Exception ErrorException { get; set; }

Gets or sets the exception thrown during the request, if any

string ErrorMessage { get; set; }

Gets or sets the HTTP error generated while attempting request

IList<Parameter> Headers { get; }

Gets or sets the headers returned by server with the response

Byte[] RawBytes { get; set; }

Gets or sets the response content

IRestRequest Request { get; set; }

Gets or sets the RestRequest that was made to get this RestResponse

ResponseStatus ResponseStatus { get; set; }

Gets or sets the status of the request. Will return Error for transport errors. HTTP errors will still return ResponseStatus.Completed, check StatusCode instead

Uri ResponseUri { get; set; }

Gets or sets the URL that actually responded to the content (different from request if redirected)

string Server { get; set; }

Gets or sets the HttpWebResponse.Server

HttpStatusCode StatusCode { get; set; }

Gets or sets the HTTP response status code

string StatusDescription { get; set; }

Gets or sets the description of HTTP status returned

  • No labels