AnCH Framework 0.2
Another C++ Hack: C++23 utility libraries
Loading...
Searching...
No Matches
anch::rest::ParamConverter< T > Struct Template Reference
Inheritance diagram for anch::rest::ParamConverter< T >:
Collaboration diagram for anch::rest::ParamConverter< T >:

Detailed Description

template<typename T>
struct anch::rest::ParamConverter< T >

Path parameter converter: customization point to bind path parameters to endpoint arguments.
A specialization provides static std::optional<T> convert(std::string_view value) , which returns an empty value when the parameter is invalid (the response is 400 ).
Integral and floating point types, bool , std::string and anch::UUID are supported.

Template Parameters
Tthe parameter type
Author
Vincent Lachenal
Since
0.2

The documentation for this struct was generated from the following file: