22#include "anch-rest-common-export.hpp"
33#include "rest/form.hpp"
34#include "rest/request.hpp"
59 requires (std::integral<T> && !std::same_as<T, bool>)
68 static std::optional<T>
convert(std::string_view value)
noexcept;
76 template<std::
floating_po
int T>
85 static std::optional<T>
convert(std::string_view value)
noexcept;
100 static std::optional<bool>
convert(std::string_view value)
noexcept;
115 static std::optional<std::string>
convert(std::string_view value);
130 static std::optional<anch::UUID>
convert(std::string_view value);
157 template<anch::rest::PathParameter T>
174 template<anch::rest::PathParameter T>
192 template<anch::rest::PathParameter T>
210 template<anch::rest::PathParameter T>
224 || std::is_arithmetic_v<T>
225 ||
requires(std::ostream& out,
const T& value) { out << value; };
236 template<anch::rest::ParameterValue T>
241#include "rest/impl/paramConverter.hpp"
UUID generator and parser.
Definition uuid.hpp:51
Definition request.hpp:50
Definition paramConverter.hpp:223
Definition paramConverter.hpp:139
AnCH REST library namespace.
Definition auth.hpp:29
std::string toParameterString(const T &value)
std::optional< T > formField(const anch::rest::Form &form, std::string_view name)
T requiredQueryParameter(const anch::rest::Request &request, std::string_view name)
T requiredFormField(const anch::rest::Form &form, std::string_view name)
std::optional< T > queryParameter(const anch::rest::Request &request, std::string_view name)
AnCH framework base namespace.
Definition app.hpp:30
static std::optional< T > convert(std::string_view value) noexcept
static std::optional< anch::UUID > convert(std::string_view value)
static std::optional< bool > convert(std::string_view value) noexcept
static std::optional< std::string > convert(std::string_view value)
Definition paramConverter.hpp:51