mirror of
https://github.com/SerenityOS/serenity.git
synced 2025-01-23 09:51:57 -05:00
8994dcb4f9
No longer just for response headers! The same type is obviously useful and ergonomic when making requests as well. (cherry picked from commit 260c5c50ad19f19d0d4c30984e512f56c055ecff) Updated various SerenityOS components to make it build.
25 lines
552 B
C++
25 lines
552 B
C++
/*
|
|
* Copyright (c) 2020, the SerenityOS developers.
|
|
*
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <RequestServer/Protocol.h>
|
|
|
|
namespace RequestServer {
|
|
|
|
class GeminiProtocol final : public Protocol {
|
|
public:
|
|
virtual ~GeminiProtocol() override = default;
|
|
|
|
static void install();
|
|
|
|
private:
|
|
GeminiProtocol();
|
|
|
|
virtual OwnPtr<Request> start_request(i32, ConnectionFromClient&, ByteString const& method, const URL::URL&, HTTP::HeaderMap const&, ReadonlyBytes body, Core::ProxyData proxy_data = {}) override;
|
|
};
|
|
|
|
}
|