22#include "anch-rest-common-export.hpp"
29#include "rest/headers.hpp"
30#include "rest/status.hpp"
Response && contentType(std::string_view mediaType) &&
anch::rest::Headers & getHeaders() noexcept
Response & contentType(std::string_view mediaType) &
Response && stream(anch::rest::BodyWriter writer) &&
Response(anch::rest::Status status=anch::rest::Status::OK)
Response & stream(anch::rest::BodyWriter writer) &
void clearBody() noexcept
void setStatus(anch::rest::Status status) noexcept
std::string content() const
bool hasBody() const noexcept
void writeBody(std::ostream &out) const
anch::rest::Status getStatus() const noexcept
Response && body(std::string content) &&
Response & body(std::string content) &
Response & header(std::string_view name, std::string_view value) &
Response && header(std::string_view name, std::string_view value) &&
AnCH REST library namespace.
Definition auth.hpp:29
Status
Definition status.hpp:36
std::function< void(std::ostream &)> BodyWriter
Definition response.hpp:35
AnCH framework base namespace.
Definition app.hpp:30