/* * Copyright (c) 2018-2020, Andreas Kling * * SPDX-License-Identifier: BSD-2-Clause */ #pragma once #include #include #include #include #include namespace RequestServer { class HttpRequest final : public Request { public: virtual ~HttpRequest() override; static NonnullOwnPtr create_with_job(Badge&&, ClientConnection&, NonnullRefPtr, NonnullOwnPtr&&); HTTP::HttpJob& job() { return m_job; } HTTP::HttpJob const& job() const { return m_job; } private: explicit HttpRequest(ClientConnection&, NonnullRefPtr, NonnullOwnPtr&&); NonnullRefPtr m_job; }; }