Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
qrestreply_p.h
Go to the documentation of this file.
1// Copyright (C) 2023 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3// Qt-Security score:significant reason:default
4
5#ifndef QRESTREPLY_P_H
6#define QRESTREPLY_P_H
7
8//
9// W A R N I N G
10// -------------
11//
12// This file is not part of the Qt API. It exists for the convenience
13// of the Network Access API. This header file may change from
14// version to version without notice, or even be removed.
15//
16// We mean it.
17//
18
19#include <QtCore/private/qstringconverter_p.h>
20
21#include <optional>
22
23QT_BEGIN_NAMESPACE
24
25class QByteArray;
26class QNetworkReply;
27
29{
30public:
33
35
36 static QByteArray contentCharset(const QNetworkReply *reply);
37};
38
39QT_END_NAMESPACE
40
41#endif
std::optional< QStringDecoder > decoder
static QByteArray contentCharset(const QNetworkReply *reply)
QRestReply is a convenience wrapper for QNetworkReply.
Definition qrestreply.h:25
Q_NETWORK_EXPORT int httpStatus() const
Returns the HTTP status received in the server response.
Q_NETWORK_EXPORT bool isHttpStatusSuccess() const
Returns whether the HTTP status is between 200..299.
Q_NETWORK_EXPORT bool hasError() const
Returns whether an error has occurred.
Q_NETWORK_EXPORT ~QRestReply()
Destroys this QRestReply object.
static QLatin1StringView operationName(QNetworkAccessManager::Operation operation)