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

Namespaces

 detail
 

Classes

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

Functions

bool is_lws (char c)
 Returns true if c is linear white space. More...
 
bool is_white (char c)
 Returns true if c is any whitespace character. More...
 
bool is_control (char c)
 Returns true if c is a control character. More...
 
bool is_separator (char c)
 Returns true if c is a separator. More...
 
bool is_char (char c)
 Returns true if c is a character. More...
 
template<class FwdIter >
FwdIter trim_left (FwdIter first, FwdIter last)
 
template<class FwdIter >
FwdIter trim_right (FwdIter first, FwdIter last)
 
template<class CharT , class Traits , class Allocator >
void trim_right_in_place (std::basic_string< CharT, Traits, Allocator > &s)
 
template<class FwdIter >
std::pair< FwdIter, FwdIter > trim (FwdIter first, FwdIter last)
 
template<class String >
String trim (String const &s)
 
template<class String >
String trim_right (String const &s)
 
std::string trim (std::string const &s)
 
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

◆ is_lws()

bool beast::rfc2616::is_lws ( char  c)

Returns true if c is linear white space.

This excludes the CRLF sequence allowed for line continuations.

Definition at line 67 of file rfc2616.h.

◆ is_white()

bool beast::rfc2616::is_white ( char  c)

Returns true if c is any whitespace character.

Definition at line 74 of file rfc2616.h.

◆ is_control()

bool beast::rfc2616::is_control ( char  c)

Returns true if c is a control character.

Definition at line 91 of file rfc2616.h.

◆ is_separator()

bool beast::rfc2616::is_separator ( char  c)

Returns true if c is a separator.

Definition at line 98 of file rfc2616.h.

◆ is_char()

bool beast::rfc2616::is_char ( char  c)

Returns true if c is a character.

Definition at line 124 of file rfc2616.h.

◆ trim_left()

template<class FwdIter >
FwdIter beast::rfc2616::trim_left ( FwdIter  first,
FwdIter  last 
)

Definition at line 135 of file rfc2616.h.

◆ trim_right() [1/2]

template<class FwdIter >
FwdIter beast::rfc2616::trim_right ( FwdIter  first,
FwdIter  last 
)

Definition at line 142 of file rfc2616.h.

◆ trim_right_in_place()

template<class CharT , class Traits , class Allocator >
void beast::rfc2616::trim_right_in_place ( std::basic_string< CharT, Traits, Allocator > &  s)

Definition at line 157 of file rfc2616.h.

◆ trim() [1/3]

template<class FwdIter >
std::pair<FwdIter, FwdIter> beast::rfc2616::trim ( FwdIter  first,
FwdIter  last 
)

Definition at line 164 of file rfc2616.h.

◆ trim() [2/3]

template<class String >
String beast::rfc2616::trim ( String const &  s)

Definition at line 173 of file rfc2616.h.

◆ trim_right() [2/2]

template<class String >
String beast::rfc2616::trim_right ( String const &  s)

Definition at line 185 of file rfc2616.h.

◆ trim() [3/3]

std::string beast::rfc2616::trim ( std::string const &  s)

Definition at line 196 of file rfc2616.h.

◆ 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 215 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 288 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 295 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 445 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 452 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 465 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 475 of file rfc2616.h.