body
mach::Response::body
Sets the response body.
Description
Section titled “Description”Sets the body of the response.
Syntax
Section titled “Syntax”void body(std::string body) noexcept;Parameters
Section titled “Parameters”| Parameter | Description |
|---|---|
body |
The body to set. |
Exceptions
Section titled “Exceptions”This function is noexcept and does not throw exceptions.
Thread Safety
Section titled “Thread Safety”This function is not thread-safe.
Example
Section titled “Example”response().body("Hello, world!");See Also
Section titled “See Also”| Name | Description |
|---|---|
body |
Returns the response body. |