Skip to content
Download

noContent

mach::noContent

Creates a No Content response.

Creates a 204 No Content response.

[[nodiscard]] mach::Reply<> noContent();

A No Content reply.

app.mapDelete("/users/{id}", [](mach::Context& context) {
deleteUser(context.request().routeParam<int>("id"));
return mach::noContent();
});
Name Description
Reply Represents the result of an HTTP endpoint.
ControllerBase::noContent Creates a No Content response from a controller.