Request.setBody

Set the body of the request.

The body of a request is optional and only makes sense for POST requests. It is ignored for all other methods. The body is empty by default.

class Request
void
setBody
(
const(char)[] requestBody
)

Parameters

requestBody const(char)[]

Content of the body

Meta