ゴミ箱
Protected Types | Protected Member Functions | Static Protected Member Functions | Static Protected Attributes | List of all members
boost::beast::http::detail::basic_parser_base Class Reference

#include <basic_parser.hpp>

Inheritance diagram for boost::beast::http::detail::basic_parser_base:
boost::beast::http::basic_parser< isRequest, parser< isRequest, Body, Allocator > > boost::beast::http::basic_parser< isRequest, parser< isRequest, Body, std::allocator< char > > > boost::beast::http::basic_parser< isRequest, Derived > boost::beast::http::parser< isRequest, Body, Allocator > boost::beast::http::parser< http::empty_body >

Protected Types

enum  state {
  state::nothing_yet = 0, state::start_line, state::fields, state::body0,
  state::body, state::body_to_eof0, state::body_to_eof, state::chunk_header0,
  state::chunk_header, state::chunk_body, state::complete
}
 

Protected Member Functions

void parse_reason (char const *&it, char const *last, string_view &result, error_code &ec)
 
template<std::size_t N>
void parse_field (char const *&p, char const *last, string_view &name, string_view &value, static_string< N > &buf, error_code &ec)
 
void parse_chunk_extensions (char const *&it, char const *last, error_code &ec)
 

Static Protected Member Functions

static bool is_pathchar (char c)
 
static bool unhex (unsigned char &d, char c)
 
static bool is_digit (char c)
 
static bool is_print (char c)
 
template<class FwdIt >
static FwdIt trim_front (FwdIt it, FwdIt const &end)
 
template<class RanIt >
static RanIt trim_back (RanIt it, RanIt const &first)
 
static string_view make_string (char const *first, char const *last)
 
static std::pair< char const *, bool > find_fast (char const *buf, char const *buf_end, char const *ranges, size_t ranges_size)
 
static char const * find_eol (char const *it, char const *last, error_code &ec)
 
static char const * find_eom (char const *p, char const *last)
 
static char const * parse_token_to_eol (char const *p, char const *last, char const *&token_last, error_code &ec)
 
template<class Iter , class Unsigned >
static bool parse_dec (Iter it, Iter last, Unsigned &v)
 
template<class Iter , class Unsigned >
static bool parse_hex (Iter &it, Unsigned &v)
 
static bool parse_crlf (char const *&it)
 
static void parse_method (char const *&it, char const *last, string_view &result, error_code &ec)
 
static void parse_target (char const *&it, char const *last, string_view &result, error_code &ec)
 
static void parse_version (char const *&it, char const *last, int &result, error_code &ec)
 
static void parse_status (char const *&it, char const *last, unsigned short &result, error_code &ec)
 

Static Protected Attributes

static std::size_t constexpr max_obs_fold = 4096
 

Member Enumeration Documentation

Enumerator
nothing_yet 
start_line 
fields 
body0 
body 
body_to_eof0 
body_to_eof 
chunk_header0 
chunk_header 
chunk_body 
complete 

Member Function Documentation

static char const* boost::beast::http::detail::basic_parser_base::find_eol ( char const *  it,
char const *  last,
error_code ec 
)
inlinestaticprotected
static char const* boost::beast::http::detail::basic_parser_base::find_eom ( char const *  p,
char const *  last 
)
inlinestaticprotected
static std::pair<char const*, bool> boost::beast::http::detail::basic_parser_base::find_fast ( char const *  buf,
char const *  buf_end,
char const *  ranges,
size_t  ranges_size 
)
inlinestaticprotected
static bool boost::beast::http::detail::basic_parser_base::is_digit ( char  c)
inlinestaticprotected
static bool boost::beast::http::detail::basic_parser_base::is_pathchar ( char  c)
inlinestaticprotected
static bool boost::beast::http::detail::basic_parser_base::is_print ( char  c)
inlinestaticprotected
static string_view boost::beast::http::detail::basic_parser_base::make_string ( char const *  first,
char const *  last 
)
inlinestaticprotected
void boost::beast::http::detail::basic_parser_base::parse_chunk_extensions ( char const *&  it,
char const *  last,
error_code ec 
)
inlineprotected
static bool boost::beast::http::detail::basic_parser_base::parse_crlf ( char const *&  it)
inlinestaticprotected
template<class Iter , class Unsigned >
static bool boost::beast::http::detail::basic_parser_base::parse_dec ( Iter  it,
Iter  last,
Unsigned &  v 
)
inlinestaticprotected
template<std::size_t N>
void boost::beast::http::detail::basic_parser_base::parse_field ( char const *&  p,
char const *  last,
string_view name,
string_view value,
static_string< N > &  buf,
error_code ec 
)
inlineprotected
template<class Iter , class Unsigned >
static bool boost::beast::http::detail::basic_parser_base::parse_hex ( Iter &  it,
Unsigned &  v 
)
inlinestaticprotected
static void boost::beast::http::detail::basic_parser_base::parse_method ( char const *&  it,
char const *  last,
string_view result,
error_code ec 
)
inlinestaticprotected
void boost::beast::http::detail::basic_parser_base::parse_reason ( char const *&  it,
char const *  last,
string_view result,
error_code ec 
)
inlineprotected
static void boost::beast::http::detail::basic_parser_base::parse_status ( char const *&  it,
char const *  last,
unsigned short &  result,
error_code ec 
)
inlinestaticprotected
static void boost::beast::http::detail::basic_parser_base::parse_target ( char const *&  it,
char const *  last,
string_view result,
error_code ec 
)
inlinestaticprotected
static char const* boost::beast::http::detail::basic_parser_base::parse_token_to_eol ( char const *  p,
char const *  last,
char const *&  token_last,
error_code ec 
)
inlinestaticprotected
static void boost::beast::http::detail::basic_parser_base::parse_version ( char const *&  it,
char const *  last,
int &  result,
error_code ec 
)
inlinestaticprotected
template<class RanIt >
static RanIt boost::beast::http::detail::basic_parser_base::trim_back ( RanIt  it,
RanIt const &  first 
)
inlinestaticprotected
template<class FwdIt >
static FwdIt boost::beast::http::detail::basic_parser_base::trim_front ( FwdIt  it,
FwdIt const &  end 
)
inlinestaticprotected
static bool boost::beast::http::detail::basic_parser_base::unhex ( unsigned char &  d,
char  c 
)
inlinestaticprotected

Member Data Documentation

std::size_t constexpr boost::beast::http::detail::basic_parser_base::max_obs_fold = 4096
staticprotected

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