123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107 |
- #ifndef BOOST_BEAST_HTTP_DETAIL_RFC7230_HPP
- #define BOOST_BEAST_HTTP_DETAIL_RFC7230_HPP
- #include <boost/beast/core/string.hpp>
- #include <cstdint>
- #include <iterator>
- #include <utility>
- namespace boost {
- namespace beast {
- namespace http {
- namespace detail {
- BOOST_BEAST_DECL
- bool
- is_digit(char c);
- BOOST_BEAST_DECL
- char
- is_alpha(char c);
- BOOST_BEAST_DECL
- char
- is_text(char c);
- BOOST_BEAST_DECL
- char
- is_token_char(char c);
- BOOST_BEAST_DECL
- char
- is_qdchar(char c);
- BOOST_BEAST_DECL
- char
- is_qpchar(char c);
- BOOST_BEAST_DECL
- char
- to_value_char(char c);
- BOOST_BEAST_DECL
- std::int8_t
- unhex(char c);
- BOOST_BEAST_DECL
- string_view
- trim(string_view s);
- struct param_iter
- {
- using iter_type = string_view::const_iterator;
- iter_type it;
- iter_type first;
- iter_type last;
- std::pair<string_view, string_view> v;
- bool
- empty() const
- {
- return first == it;
- }
- BOOST_BEAST_DECL
- void
- increment();
- };
- struct opt_token_list_policy
- {
- using value_type = string_view;
- BOOST_BEAST_DECL
- bool
- operator()(value_type& v,
- char const*& it, string_view s) const;
- };
- }
- }
- }
- }
- #ifdef BOOST_BEAST_HEADER_ONLY
- #include <boost/beast/http/detail/rfc7230.ipp>
- #endif
- #endif
|