/* * 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::HttpJob; using RequestType = HttpRequest; HttpProtocol(); ~HttpProtocol() override = default; virtual OwnPtr start_request(ClientConnection&, const String& method, const URL&, const HashMap& headers, ReadonlyBytes body) override; }; }