http_client.hpp (d7043b3aeb9029321be973f1affd037c3743202c) http_client.hpp (e1452bea2809f7189a69ee562e5078e452f0a251)
1/*
2// Copyright (c) 2020 Intel Corporation
3//
4// Licensed under the Apache License, Version 2.0 (the "License");
5// you may not use this file except in compliance with the License.
6// You may obtain a copy of the License at
7//
8// http://www.apache.org/licenses/LICENSE-2.0

--- 134 unchanged lines hidden (view full) ---

143 parser;
144 boost::beast::flat_static_buffer<httpReadBufferSize> buffer;
145 Response res;
146
147 // Ascync callables
148 std::function<void(bool, uint32_t, Response&)> callback;
149
150#ifdef BMCWEB_DBUS_DNS_RESOLVER
1/*
2// Copyright (c) 2020 Intel Corporation
3//
4// Licensed under the Apache License, Version 2.0 (the "License");
5// you may not use this file except in compliance with the License.
6// You may obtain a copy of the License at
7//
8// http://www.apache.org/licenses/LICENSE-2.0

--- 134 unchanged lines hidden (view full) ---

143 parser;
144 boost::beast::flat_static_buffer<httpReadBufferSize> buffer;
145 Response res;
146
147 // Ascync callables
148 std::function<void(bool, uint32_t, Response&)> callback;
149
150#ifdef BMCWEB_DBUS_DNS_RESOLVER
151 using Resolver = crow::async_resolve::Resolver;
151 using Resolver = async_resolve::Resolver;
152#else
153 using Resolver = boost::asio::ip::tcp::resolver;
154#endif
155 Resolver resolver;
156
157 boost::asio::ip::tcp::socket conn;
158 std::optional<boost::beast::ssl_stream<boost::asio::ip::tcp::socket&>>
159 sslConn;

--- 751 unchanged lines hidden ---
152#else
153 using Resolver = boost::asio::ip::tcp::resolver;
154#endif
155 Resolver resolver;
156
157 boost::asio::ip::tcp::socket conn;
158 std::optional<boost::beast::ssl_stream<boost::asio::ip::tcp::socket&>>
159 sslConn;

--- 751 unchanged lines hidden ---