2 // Copyright (c) 2016-2019 Vinnie Falco (vinnie dot falco at gmail dot com)
4 // Distributed under the Boost Software License, Version 1.0. (See accompanying
5 // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
7 // Official repository: https://github.com/boostorg/beast
10 #ifndef BOOST_BEAST_HTTP_DETAIL_RFC7230_HPP
11 #define BOOST_BEAST_HTTP_DETAIL_RFC7230_HPP
13 #include <boost/beast/core/string.hpp>
36 is_token_char(char c);
47 // converts to lower case,
48 // returns 0 if not a valid text char
52 to_value_char(char c);
54 // VFALCO TODO Make this return unsigned?
65 using iter_type = string_view::const_iterator;
70 std::pair<string_view, string_view> v;
84 #token = [ ( "," / token ) *( OWS "," [ OWS token ] ) ]
86 struct opt_token_list_policy
88 using value_type = string_view;
92 operator()(value_type& v,
93 char const*& it, string_view s) const;
101 #ifdef BOOST_BEAST_HEADER_ONLY
102 #include <boost/beast/http/detail/rfc7230.ipp>