#ifdef UNSAFE_BUFFERS_BUILD
#pragma allow_unsafe_buffers
#endif
#include "net/test/embedded_test_server/http_request.h"
#include <algorithm>
#include <string_view>
#include <utility>
#include "base/logging.h"
#include "base/strings/string_number_conversions.h"
#include "base/strings/string_split.h"
#include "base/strings/string_util.h"
#include "net/base/host_port_pair.h"
#include "net/http/http_chunked_decoder.h"
#include "url/gurl.h"
namespace net::test_server {
namespace {
size_t kRequestSizeLimit = …;
std::string Trim(const std::string& value) { … }
}
HttpRequest::HttpRequest() = default;
HttpRequest::HttpRequest(const HttpRequest& other) = default;
HttpRequest::~HttpRequest() = default;
GURL HttpRequest::GetURL() const { … }
HttpRequestParser::HttpRequestParser()
: … { … }
HttpRequestParser::~HttpRequestParser() = default;
void HttpRequestParser::ProcessChunk(std::string_view data) { … }
std::string HttpRequestParser::ShiftLine() { … }
HttpRequestParser::ParseResult HttpRequestParser::ParseRequest() { … }
HttpRequestParser::ParseResult HttpRequestParser::ParseHeaders() { … }
HttpRequestParser::ParseResult HttpRequestParser::ParseContent() { … }
std::unique_ptr<HttpRequest> HttpRequestParser::GetRequest() { … }
HttpMethod HttpRequestParser::GetMethodType(std::string_view token) { … }
}