HTTPServerRequest.json

Contains the parsed Json for a JSON request.

A JSON request must have the Content-Type "application/json" or "application/vnd.api+json".

class HTTPServerRequest
@property ref @safe return
json
()

Examples

Get the json body when there is no content-type header

assert(createTestHTTPServerRequest(URL("http://localhost/")).json.type == Json.Type.undefined);

Meta