Skip to content

RestResponse

Scott Offen edited this page Nov 12, 2014 · 5 revisions

Grapevine.Client.RESTResponse

A RESTResponse is returned from the Execute() method of a RESTClient.

Constructor

RESTResponse does not expose any public constructors.

Methods

RESTResponse does not expose any public methods.

Properties

All public properties are read only.

Content : String

Returns the body of the response as a string.

ContentEncoding : String

Returns the method that is used to encode the body of the response.

ContentLength : long

Returns the length of the content returned by the request.

ContentType : String

Returns the content type of the response.

Cookies : CookieCollection

Returns the cookies that are associated with this response.

ElapsedTime : long

Returns the elapsed time of the request in milliseconds.

Error : String

Returns the error message if an error occurred in executing the request.

ErrorStatus : WebExceptionStatus

Returns the WebExceptionStatus of the request (WebExceptionStatus.Success if there was no error).

Returns the headers that are associated with this response.

ResponseStatus : String

Returns the response status code for this response.

ResponseUri : Uri

Returns the URI of the Internet resource that responded to the request.

ReturnedError : Boolean

Returns true if an error occurred in the execution of the request.

Server : String

Returns the name of the server that sent the response.

StatusCode : HttpStatusCode

Returns the HttpStatusCode of the response.

StatusDescription : String

Returns the status description returned with the response.