![]() |
Thoth
A functional, expressive, asynchronous C++26 webdev library
|
#include <ValueProxy.hpp>
Classes | |
| struct | First |
Public Types | |
| using | HeaderType = std::conditional_t< IsConst, const Headers, Headers > |
| using | PatternType = std::conditional_t< Single, std::string_view, std::array< std::string_view, Count > > |
| using | Type = std::conditional_t< Single, typename First< Ts... >::Type, std::variant< Ts... > > |
Public Member Functions | |
| ValueProxy (ValueProxy &&)=delete | |
| ValueProxy (const ValueProxy &)=delete | |
| ValueProxy (std::string_view key, HeaderType &headers, PatternType inPattern={}) | |
| std::optional< Type > | GetAsOpt () && |
| std::expected< Type, HeaderErrorEnum > | Get () && |
| std::expected< Type, InvalidHeaderFormat > | GetWithDefault (Type defaultValue) && |
| template<class T > requires (!IsConst) | |
| void | operator= (const T &newValue) && |
| template<class T > requires (!IsConst) | |
| void | operator= (T &&newValue) && |
| template<class T > requires (!IsConst) | |
| void | Set (const T &newValue) && |
| template<class T > requires (!IsConst) | |
| void | Set (T &&newValue) && |
| template<class = void> requires (!IsConst) | |
| bool | TrySet (std::string_view newValue) && |
Static Public Attributes | |
| static constexpr int | Count { sizeof...(Ts) } |
| static constexpr int | Single { sizeof...(Ts) == 1 } |
| using Thoth::Http::NHeaders::ValueProxy< IsConst, Ts >::HeaderType = std::conditional_t<IsConst, const Headers, Headers> |
| using Thoth::Http::NHeaders::ValueProxy< IsConst, Ts >::PatternType = std::conditional_t<Single, std::string_view, std::array<std::string_view, Count> > |
| using Thoth::Http::NHeaders::ValueProxy< IsConst, Ts >::Type = std::conditional_t<Single, typename First<Ts...>::Type, std::variant<Ts...> > |
|
delete |
|
delete |
| Thoth::Http::NHeaders::ValueProxy< IsConst, Ts >::ValueProxy | ( | std::string_view | key, |
| HeaderType & | headers, | ||
| PatternType | inPattern = {} |
||
| ) |
| std::expected< Type, HeaderErrorEnum > Thoth::Http::NHeaders::ValueProxy< IsConst, Ts >::Get | ( | ) | && |
| std::optional< Type > Thoth::Http::NHeaders::ValueProxy< IsConst, Ts >::GetAsOpt | ( | ) | && |
| std::expected< Type, InvalidHeaderFormat > Thoth::Http::NHeaders::ValueProxy< IsConst, Ts >::GetWithDefault | ( | Type | defaultValue | ) | && |
| void Thoth::Http::NHeaders::ValueProxy< IsConst, Ts >::operator= | ( | const T & | newValue | ) | && |
| void Thoth::Http::NHeaders::ValueProxy< IsConst, Ts >::operator= | ( | T && | newValue | ) | && |
| void Thoth::Http::NHeaders::ValueProxy< IsConst, Ts >::Set | ( | const T & | newValue | ) | && |
| void Thoth::Http::NHeaders::ValueProxy< IsConst, Ts >::Set | ( | T && | newValue | ) | && |
| bool Thoth::Http::NHeaders::ValueProxy< IsConst, Ts >::TrySet | ( | std::string_view | newValue | ) | && |
|
staticconstexpr |
|
staticconstexpr |