diff options
| author | Felix (xq) Queißner <git@mq32.de> | 2020-06-19 10:37:20 +0200 |
|---|---|---|
| committer | Felix (xq) Queißner <git@mq32.de> | 2020-06-19 10:37:20 +0200 |
| commit | 6a5198d23412a6d11f78cdef71850e578ca6f8c0 (patch) | |
| tree | 136afe4f0d78018a1ae97a35e770ae792ae66ebc /src/protocolhandler.hpp | |
| parent | 9a5c0b8ba8595b9084ad8dc27884b0cbc691459c (diff) | |
| download | kristall-6a5198d23412a6d11f78cdef71850e578ca6f8c0.tar.gz | |
Allows user to skip over invalid TLS connections and fetch the content anyways.
Diffstat (limited to 'src/protocolhandler.hpp')
| -rw-r--r-- | src/protocolhandler.hpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/protocolhandler.hpp b/src/protocolhandler.hpp index f93ef87..2fc60db 100644 --- a/src/protocolhandler.hpp +++ b/src/protocolhandler.hpp @@ -17,7 +17,7 @@ public: ConnectionRefused, //!< The host refused connection on that port ResourceNotFound, //!< The requested resource was not found on the server BadRequest, //!< Our client misbehaved and did a request the server cannot understand - ProxyRequest, //!< We requested to + ProxyRequest, //!< We requested a proxy operation, but the server does not allow that InternalServerError, InvalidClientCertificate, UntrustedHost, //!< We don't know the host, and we don't trust it @@ -26,12 +26,16 @@ public: TlsFailure, //!< Unspecified TLS failure Timeout, //!< The network connection timed out. }; + enum RequestOptions { + Default = 0, + IgnoreTlsErrors = 1, + }; public: explicit ProtocolHandler(QObject *parent = nullptr); virtual bool supportsScheme(QString const & scheme) const = 0; - virtual bool startRequest(QUrl const & url) = 0; + virtual bool startRequest(QUrl const & url, RequestOptions options) = 0; virtual bool isInProgress() const = 0; |
