chromium/net/test/embedded_test_server/http_request.cc

// Copyright 2012 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifdef UNSAFE_BUFFERS_BUILD
// TODO(crbug.com/40284755): Remove this and spanify to fix the errors.
#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 =;  // 64 mb.

// Helper function used to trim tokens in http request headers.
std::string Trim(const std::string& value) {}

}  // namespace

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() {}

// static
HttpMethod HttpRequestParser::GetMethodType(std::string_view token) {}

}  // namespace net::test_server