Lines Matching full:boost
22 #include <boost/asio/error.hpp>
23 #include <boost/asio/ip/tcp.hpp>
24 #include <boost/asio/ssl/error.hpp>
25 #include <boost/asio/ssl/stream.hpp>
26 #include <boost/asio/ssl/stream_base.hpp>
27 #include <boost/asio/ssl/verify_context.hpp>
28 #include <boost/asio/steady_timer.hpp>
29 #include <boost/beast/_experimental/test/stream.hpp>
30 #include <boost/beast/core/buffers_generator.hpp>
31 #include <boost/beast/core/detect_ssl.hpp>
32 #include <boost/beast/core/error.hpp>
33 #include <boost/beast/core/flat_static_buffer.hpp>
34 #include <boost/beast/http/error.hpp>
35 #include <boost/beast/http/field.hpp>
36 #include <boost/beast/http/message_generator.hpp>
37 #include <boost/beast/http/parser.hpp>
38 #include <boost/beast/http/read.hpp>
39 #include <boost/beast/http/rfc7230.hpp>
40 #include <boost/beast/http/status.hpp>
41 #include <boost/beast/http/verb.hpp>
42 #include <boost/none.hpp>
43 #include <boost/optional/optional.hpp>
44 #include <boost/url/url_view.hpp>
80 boost::asio::steady_timer&& timerIn,
82 boost::asio::ssl::stream<Adaptor>&& adaptorIn) :
110 boost::asio::ssl::verify_context& ctx)
157 boost::system::error_code ec;
170 boost::beast::error_code ec, bool isTls)
189 boost::asio::ssl::stream_base::server, buffer.data(),
232 boost::beast::async_detect_ssl(
239 const boost::system::error_code& ec,
274 boost::beast::http::request_parser<bmcweb::HttpBody>& instance =
282 instance.body_limit(boost::none);
303 using boost::beast::http::field;
304 using boost::beast::http::token_list;
330 res.result(boost::beast::http::status::switching_protocols);
331 res.addHeader(boost::beast::http::field::connection, "Upgrade");
332 res.addHeader(boost::beast::http::field::upgrade, "h2c");
337 if (req->req.method() == boost::beast::http::verb::get)
343 if (thisRes.result() != boost::beast::http::status::ok)
383 res.result(boost::beast::http::status::bad_request);
388 using boost::beast::http::field;
399 res.result(boost::beast::http::status::bad_request);
444 req->getHeaderValue(boost::beast::http::field::if_none_match);
459 const boost::system::error_code& ec)
498 res.addHeader(boost::beast::http::field::date, getCachedDateStr());
509 boost::system::error_code ec;
511 boost::asio::ip::tcp::endpoint endpoint =
512 boost::beast::get_lowest_layer(adaptor).remote_endpoint(ec);
553 const boost::optional<uint64_t> contentLength =
575 res.result(boost::beast::http::status::unauthorized);
585 res.result(boost::beast::http::status::payload_too_large);
597 const boost::system::error_code& ec,
607 if (ec == boost::beast::http::error::header_limit)
612 res.result(boost::beast::http::status::
634 boost::beast::http::verb method = value.method();
639 std::string_view expect = value[boost::beast::http::field::expect];
642 res.result(boost::beast::http::status::continue_);
674 boost::beast::http::async_read_header(
681 boost::beast::http::async_read_header(
689 const boost::system::error_code& ec,
699 if (ec == boost::beast::http::error::body_limit)
707 boost::beast::http::status::internal_server_error);
755 boost::beast::http::async_read_some(
762 boost::beast::http::async_read_some(
770 const boost::system::error_code& ec,
778 if (ec == boost::system::errc::operation_would_block ||
779 ec == boost::system::errc::resource_unavailable_try_again)
785 if (ec == boost::beast::http::error::end_of_stream ||
786 ec == boost::asio::ssl::error::stream_truncated)
800 if (res.result() == boost::beast::http::status::switching_protocols)
806 if (res.result() == boost::beast::http::status::continue_)
809 res.result(boost::beast::http::status::ok);
837 boost::urls::url_view urlView;
847 boost::beast::async_write(
849 boost::beast::http::message_generator(std::move(res.response)),
855 boost::beast::async_write(
857 boost::beast::http::message_generator(std::move(res.response)),
869 const boost::system::error_code& ec)
876 if (ec == boost::asio::error::operation_aborted)
894 if (ec == boost::asio::error::operation_aborted)
930 boost::asio::ssl::stream<Adaptor> adaptor;
933 boost::asio::ip::address ip;
937 std::optional<boost::beast::http::request_parser<bmcweb::HttpBody>> parser;
939 boost::beast::flat_static_buffer<8192> buffer;
951 boost::asio::steady_timer timer;