
SPDX License Identifiers are a more compact / standardized way of representing file license information. See: https://spdx.dev/resources/use/#identifiers This was done with the `ambr` search and replace tool. ambr --no-parent-ignore --key-from-file --rep-from-file key.txt rep.txt *
31 lines
814 B
C++
31 lines
814 B
C++
/*
|
|
* Copyright (c) 2020, The SerenityOS developers.
|
|
*
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <AK/Badge.h>
|
|
#include <LibCore/Forward.h>
|
|
#include <LibHTTP/HttpsJob.h>
|
|
#include <ProtocolServer/Download.h>
|
|
|
|
namespace ProtocolServer {
|
|
|
|
class HttpsDownload final : public Download {
|
|
public:
|
|
virtual ~HttpsDownload() override;
|
|
static NonnullOwnPtr<HttpsDownload> create_with_job(Badge<HttpsProtocol>&&, ClientConnection&, NonnullRefPtr<HTTP::HttpsJob>, NonnullOwnPtr<OutputFileStream>&&);
|
|
|
|
HTTP::HttpsJob& job() { return m_job; }
|
|
|
|
private:
|
|
explicit HttpsDownload(ClientConnection&, NonnullRefPtr<HTTP::HttpsJob>, NonnullOwnPtr<OutputFileStream>&&);
|
|
|
|
virtual void set_certificate(String certificate, String key) override;
|
|
|
|
NonnullRefPtr<HTTP::HttpsJob> m_job;
|
|
};
|
|
|
|
}
|