rippled
Namespaces | Classes | Functions
beast::rfc2616 Namespace Reference

Namespaces

 detail
 

Classes

class  list_iterator
 Iterates through a comma separated list. More...
 

Functions

template<class FwdIt , class Result = std::vector< std::basic_string<typename std::iterator_traits<FwdIt>::value_type>>, class Char >
Result split (FwdIt first, FwdIt last, Char delim)
 Parse a character sequence of values separated by commas. More...
 
template<class FwdIt , class Result = std::vector< std::basic_string<typename std::iterator_traits<FwdIt>::value_type>>>
Result split_commas (FwdIt first, FwdIt last)
 
template<class Result = std::vector<std::string>>
Result split_commas (boost::beast::string_view const &s)
 
bool ci_equal (boost::string_ref s1, boost::string_ref s2)
 Returns true if two strings are equal. More...
 
boost::iterator_range< list_iteratormake_list (boost::string_ref const &field)
 Returns a range representing the list. More...
 
template<class = void>
bool token_in_list (boost::string_ref const &value, boost::string_ref const &token)
 Returns true if the specified token exists in the list. More...
 
template<bool isRequest, class Body , class Fields >
bool is_keep_alive (boost::beast::http::message< isRequest, Body, Fields > const &m)
 

Function Documentation

◆ split()

template<class FwdIt , class Result = std::vector< std::basic_string<typename std::iterator_traits<FwdIt>::value_type>>, class Char >
Result beast::rfc2616::split ( FwdIt  first,
FwdIt  last,
Char  delim 
)

Parse a character sequence of values separated by commas.

Double quotes and escape sequences will be converted. Excess white space, commas, double quotes, and empty elements are not copied. Format: #(token|quoted-string) Reference: http://www.w3.org/Protocols/rfc2616/rfc2616-sec2.html#sec2

Definition at line 123 of file rfc2616.h.

◆ split_commas() [1/2]

template<class FwdIt , class Result = std::vector< std::basic_string<typename std::iterator_traits<FwdIt>::value_type>>>
Result beast::rfc2616::split_commas ( FwdIt  first,
FwdIt  last 
)

Definition at line 199 of file rfc2616.h.

◆ split_commas() [2/2]

template<class Result = std::vector<std::string>>
Result beast::rfc2616::split_commas ( boost::beast::string_view const &  s)

Definition at line 206 of file rfc2616.h.

◆ ci_equal()

bool beast::rfc2616::ci_equal ( boost::string_ref  s1,
boost::string_ref  s2 
)

Returns true if two strings are equal.

A case-insensitive comparison is used.

Definition at line 356 of file rfc2616.h.

◆ make_list()

boost::iterator_range<list_iterator> beast::rfc2616::make_list ( boost::string_ref const &  field)

Returns a range representing the list.

Definition at line 363 of file rfc2616.h.

◆ token_in_list()

template<class = void>
bool beast::rfc2616::token_in_list ( boost::string_ref const &  value,
boost::string_ref const &  token 
)

Returns true if the specified token exists in the list.

A case-insensitive comparison is used.

Definition at line 376 of file rfc2616.h.

◆ is_keep_alive()

template<bool isRequest, class Body , class Fields >
bool beast::rfc2616::is_keep_alive ( boost::beast::http::message< isRequest, Body, Fields > const &  m)

Definition at line 386 of file rfc2616.h.