Template Struct urlencoded_form

Struct Documentation

template<typename Iterator>
struct udho::urlencoded_form

Form accessor for urlencoded forms

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)
std::size_t count() const

number of fields in the form

bool has(const std::string name) const

checks whether there exists any field with the name provided

template<typename T>
const T field(const std::string &name) const

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

Public Members

header_map_type _fields