ゴミ箱
|
#include <rfc7230.hpp>
Classes | |
class | const_iterator |
Public Types | |
using | value_type = string_view |
The type of each element in the token list. More... | |
Public Member Functions | |
token_list (string_view s) | |
const_iterator | begin () const |
Return a const iterator to the beginning of the list. More... | |
const_iterator | end () const |
Return a const iterator to the end of the list. More... | |
const_iterator | cbegin () const |
Return a const iterator to the beginning of the list. More... | |
const_iterator | cend () const |
Return a const iterator to the end of the list. More... | |
template<class T > | |
bool | exists (T const &s) |
A list of tokens in a comma separated HTTP field value.
This container allows iteration of a list of items in a header field value. The input is a comma separated list of tokens.
If a parsing error is encountered while iterating the string, the behavior of the container will be as if a string containing only characters up to but excluding the first invalid character was used to construct the list.
To use this class, construct with the string to be parsed and then use begin and end, or range-for to iterate each item:
The type of each element in the token list.
|
inlineexplicit |
Construct a list.
s | A string containing the list contents. The string must remain valid for the lifetime of the container. |
|
inline |
Return a const iterator to the beginning of the list.
|
inline |
Return a const iterator to the beginning of the list.
|
inline |
Return a const iterator to the end of the list.
|
inline |
Return a const iterator to the end of the list.
bool boost::beast::http::token_list::exists | ( | T const & | s | ) |
Return true
if a token is present in the list.
s | The token to find. A case-insensitive comparison is used. |