Legend

Class
Struct
Enum
Interface
Delegate
Constructor
Method
Property
Event
Field

Class: RT.Util.HResponse

Summary

Encapsulates the response received by an HTTP server after a call to HClient.Get(string, params HArg[]), HClient.Post(string, params HArg[]) or related methods.

Constructors

HResponse(HttpWebResponse response)
Constructs a new instance of HResponse by reading all data from the response stream of the specified HttpWebResponse object and closing it.

Instance methods

HResponse
Expect(HttpStatusCode status)
Throws an exception if the status code of the response is not the specified expected status code.

Instance properties

byte[]The raw content of the response.
JsonValueThe content of the response, parsed as JSON.
stringThe content of the response, converted to a string from UTF-8.
WebHeaderCollectionGets a collection containing response headers.
stringSpecifies the location this response is redirecting to or was redirected to.
HttpStatusCodeThe status code of the response.