noContent
mach::noContent
Creates a No Content response.
Description
Section titled “Description”Creates a 204 No Content response.
Syntax
Section titled “Syntax”[[nodiscard]] mach::Reply<> noContent();Return Value
Section titled “Return Value”A No Content reply.
Example
Section titled “Example”app.mapDelete("/users/{id}", [](mach::Context& context) { deleteUser(context.request().routeParam<int>("id"));
return mach::noContent();});See Also
Section titled “See Also”| Name | Description |
|---|---|
Reply |
Represents the result of an HTTP endpoint. |
ControllerBase::noContent |
Creates a No Content response from a controller. |