xrpld
Loading...
Searching...
No Matches
beast::rfc2616 Namespace Reference

Namespaces

namespace  detail

Classes

class  ListIterator
 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.
template<class FwdIt, class Result = std::vector<std::basic_string<typename std::iterator_traits<FwdIt>::value_type>>>
Result splitCommas (FwdIt first, FwdIt last)
template<class Result = std::vector<std::string>>
Result splitCommas (boost::beast::string_view const &s)
bool ciEqual (boost::string_ref s1, boost::string_ref s2)
 Returns true if two strings are equal.
boost::iterator_range< ListIteratormakeList (boost::string_ref const &field)
 Returns a range representing the list.
template<class = void>
bool tokenInList (boost::string_ref const &value, boost::string_ref const &token)
 Returns true if the specified token exists in the list.
template<bool IsRequest, class Body, class Fields>
bool isKeepAlive (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 102 of file rfc2616.h.

◆ splitCommas() [1/2]

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

Definition at line 177 of file rfc2616.h.

◆ splitCommas() [2/2]

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

Definition at line 184 of file rfc2616.h.

◆ ciEqual()

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

Returns true if two strings are equal.

A case-insensitive comparison is used.

Definition at line 330 of file rfc2616.h.

◆ makeList()

boost::iterator_range< ListIterator > beast::rfc2616::makeList ( boost::string_ref const & field)

Returns a range representing the list.

Definition at line 337 of file rfc2616.h.

◆ tokenInList()

template<class = void>
bool beast::rfc2616::tokenInList ( 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 349 of file rfc2616.h.

◆ isKeepAlive()

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

Definition at line 361 of file rfc2616.h.