Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
src_network_access_qnetworkreply.cpp
Go to the documentation of this file.
1// Copyright (C) 2016 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
3
4using namespace Qt::StringLiterals;
5
7QList<QSslCertificate> cert = QSslCertificate::fromPath("server-certificate.pem"_L1);
9QList<QSslError> expectedSslErrors;
11
12QNetworkReply *reply = manager.get(QNetworkRequest(QUrl("https://server.tld/index.html")));
14// here connect signals etc.
const_reference at(qsizetype i) const noexcept
Definition qlist.h:446
void append(parameter_type t)
Definition qlist.h:458
QNetworkReply * get(const QNetworkRequest &request)
Posts a request to obtain the contents of the target request and returns a new QNetworkReply object o...
The QNetworkReply class contains the data and headers for a request sent with QNetworkAccessManager.
virtual void ignoreSslErrors()
If this function is called, SSL errors related to network connection will be ignored,...
The QNetworkRequest class holds a request to be sent with QNetworkAccessManager.
static QList< QSslCertificate > fromPath(const QString &path, QSsl::EncodingFormat format=QSsl::Pem, PatternSyntax syntax=PatternSyntax::FixedString)
The QSslError class provides an SSL error.
Definition qsslerror.h:21
@ SelfSignedCertificate
Definition qsslerror.h:34
\inmodule QtCore
Definition qurl.h:94
DBusConnection const char DBusError * error
QNetworkAccessManager manager
QList< QSslError > expectedSslErrors
QNetworkReply * reply
QList< QSslCertificate > cert
[0]