Template Struct urlencoded_

Inheritance Relationships

Derived Type

Struct Documentation

template<typename Iterator = std::string::const_iterator>
struct udho::forms::drivers::urlencoded_

Form driver for urlencoded forms

Subclassed by udho::url

Public Types

typedef Iterator iterator_type
typedef std::iterator_traits<iterator_type>::value_type value_type
typedef std::basic_string<value_type> string_type
typedef bounded_str<iterator_type> bounded_string_type
typedef std::map<string_type, bounded_string_type> header_map_type
typedef bounded_string_type bounded_string

Public Functions

void parse(iterator_type begin, iterator_type end)
bool empty(const std::string &name) const

checks whether the value for the field is empty

bool exists(const std::string &name) const

checks whether there exists any field with the name provided

template<typename T, typename ParserT = udho::forms::parser<T>, typename ...ArgsT>
bool parsable(const std::string &name, const ArgsT&... args) const
template<typename T, typename ParserT = udho::forms::parser<T>, typename ...ArgsT>
const T parsed(const std::string &name, const ArgsT&... args) const

returns the value of the field with the name provided lexically casted to type T

Public Members

header_map_type _fields
std::string _query