/* * Copyright (c) 2018-2020, Andreas Kling * * SPDX-License-Identifier: BSD-2-Clause */ #pragma once #include #include #include #include #include #include #include #include #include #include namespace RequestServer { class HttpProtocol final : public Protocol { public: using JobType = HTTP::Job; using RequestType = HttpRequest; HttpProtocol(); ~HttpProtocol() override = default; virtual OwnPtr start_request(ConnectionFromClient&, String const& method, const URL&, HashMap const& headers, ReadonlyBytes body, Core::ProxyData proxy_data = {}) override; }; }