/* * Copyright (c) 2020, the SerenityOS developers. * * SPDX-License-Identifier: BSD-2-Clause */ #pragma once #include #include #include #include #include #include #include namespace HTTP { class HttpsJob final : public Job { C_OBJECT(HttpsJob) public: virtual ~HttpsJob() override { } bool received_client_certificates() const { return m_received_client_certificates.has_value(); } Vector take_client_certificates() const { return m_received_client_certificates.release_value(); } void set_certificate(DeprecatedString certificate, DeprecatedString key); Function()> on_certificate_requested; private: explicit HttpsJob(HttpRequest&& request, Core::Stream::Stream& output_stream) : Job(move(request), output_stream) { } mutable Optional> m_received_client_certificates; }; }