#include "net/http/http_basic_state.h"
#include <set>
#include <utility>
#include "base/check_op.h"
#include "base/no_destructor.h"
#include "net/base/io_buffer.h"
#include "net/base/ip_endpoint.h"
#include "net/base/load_timing_info.h"
#include "net/base/net_errors.h"
#include "net/http/http_request_info.h"
#include "net/http/http_response_body_drainer.h"
#include "net/http/http_stream_parser.h"
#include "net/http/http_util.h"
#include "net/socket/stream_socket.h"
#include "net/socket/stream_socket_handle.h"
#include "net/ssl/ssl_info.h"
#include "url/gurl.h"
namespace net {
HttpBasicState::HttpBasicState(std::unique_ptr<StreamSocketHandle> connection,
bool is_for_get_to_http_proxy)
: … { … }
HttpBasicState::~HttpBasicState() = default;
void HttpBasicState::Initialize(const HttpRequestInfo* request_info,
RequestPriority priority,
const NetLogWithSource& net_log) { … }
void HttpBasicState::Close(bool not_reusable) { … }
std::unique_ptr<StreamSocketHandle> HttpBasicState::ReleaseConnection() { … }
scoped_refptr<GrowableIOBuffer> HttpBasicState::read_buf() const { … }
std::string HttpBasicState::GenerateRequestLine() const { … }
bool HttpBasicState::IsConnectionReused() const { … }
void HttpBasicState::SetConnectionReused() { … }
bool HttpBasicState::CanReuseConnection() const { … }
bool HttpBasicState::GetLoadTimingInfo(LoadTimingInfo* load_timing_info) const { … }
void HttpBasicState::GetSSLInfo(SSLInfo* ssl_info) { … }
int HttpBasicState::GetRemoteEndpoint(IPEndPoint* endpoint) { … }
const std::set<std::string>& HttpBasicState::GetDnsAliases() const { … }
}