|  | Home | Libraries | People | FAQ | More | 
A list of tokens in a comma separated HTTP field value.
        Defined in header <boost/beast/http/rfc7230.hpp>
      
class token_list
| Name | Description | 
|---|---|
| A constant iterator to the list. | |
| The type of each element in the token list. | 
| Name | Description | 
|---|---|
| Return a const iterator to the beginning of the list. | |
| Return a const iterator to the beginning of the list. | |
| Return a const iterator to the end of the list. | |
| Return a const iterator to the end of the list. | |
| 
                  Return  | |
| token_list [constructor] | Construct a list. | 
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.
token-list = *( "," OWS ) token *( OWS "," [ OWS token ] )
        To use this class, construct with the string to be parsed and then use begin
        and end, or range-for to iterate each
        item:
      
for(auto const& token : token_list{"apple, pear, banana"}) std::cout << token << "\n";