#include "net/test/embedded_test_server/request_handler_util.h"
#include <stdlib.h>
#include <ctime>
#include <sstream>
#include <utility>
#include "base/base64.h"
#include "base/files/file_path.h"
#include "base/files/file_util.h"
#include "base/format_macros.h"
#include "base/strings/escape.h"
#include "base/strings/string_util.h"
#include "base/strings/stringprintf.h"
#include "base/strings/utf_string_conversions.h"
#include "base/threading/thread_restrictions.h"
#include "build/build_config.h"
#include "net/base/url_util.h"
#include "net/http/http_byte_range.h"
#include "net/http/http_util.h"
#include "net/test/embedded_test_server/http_request.h"
#include "url/gurl.h"
namespace net::test_server {
constexpr base::FilePath::CharType kMockHttpHeadersExtension[] = …);
std::string GetContentType(const base::FilePath& path) { … }
bool ShouldHandle(const HttpRequest& request, const std::string& path_prefix) { … }
std::unique_ptr<HttpResponse> HandlePrefixedRequest(
const std::string& prefix,
const EmbeddedTestServer::HandleRequestCallback& handler,
const HttpRequest& request) { … }
RequestQuery ParseQuery(const GURL& url) { … }
std::string GetFilePathWithReplacements(
const std::string& original_file_path,
const base::StringPairs& text_to_replace) { … }
bool UpdateReplacedText(const RequestQuery& query, std::string* data) { … }
std::unique_ptr<HttpResponse> HandleFileRequest(
const base::FilePath& server_root,
const HttpRequest& request) { … }
}