Skip to content
Download

body

mach::Request::body

Returns the request body.

Returns the body of the request.

[[nodiscard]] const std::string& body() const noexcept;

A reference to the request body.

This function is noexcept and does not throw exceptions.

This function is thread-safe.

const auto& body = request().body();
Name Description
method Returns the request method.
version Returns the HTTP version.
target Returns the request target.