HttpUnitTestResult

Wrapper around a http unittet result.

Members

Functions

getCookie
string getCookie(string name, string defaultValue)

Gets a cookie.

getHeader
string getHeader(string name, string defaultValue)

Gets a header.

getModelFromJson
T getModelFromJson(CTORARGS args)

Gets a model from the response's json.

hasCookie
bool hasCookie(string name)

Checks whether a cookie is present or not.

hasHeader
bool hasHeader(string name)

Checks whether a header is present or not.

Properties

bodyData
auto bodyData [@property getter]

Gets the body data.

contentType
string contentType [@property getter]

Gets the content type.

json
auto json [@property getter]

Gets the json.

rawResponse
HTTPClientResponse rawResponse [@property getter]

Gets the raw vibe.d response.

responseStream
auto responseStream [@property getter]

Gets the raw vibe.d response stream.

statusCode
HttpStatus statusCode [@property getter]

Gets the status code.

Meta