7#include <QtNetwork/qnetworkreply.h>
9#include <QtCore/qpointer.h>
30 : wrapped(std::move(
other.wrapped)),
31 d(std::exchange(
other.d,
nullptr))
34 QT_MOVE_ASSIGNMENT_OPERATOR_IMPL_VIA_PURE_SWAP(
QRestReply)
37 wrapped.swap(
other.wrapped);
45 Q_NETWORK_EXPORT
QString readText();
49 return !hasError() && isHttpStatusSuccess();
51 Q_NETWORK_EXPORT
int httpStatus()
const;
52 Q_NETWORK_EXPORT
bool isHttpStatusSuccess()
const;
54 Q_NETWORK_EXPORT
bool hasError()
const;
56 Q_NETWORK_EXPORT
QString errorString()
const;
59#ifndef QT_NO_DEBUG_STREAM
62 QPointer<QNetworkReply> wrapped;
\inmodule QtCore\reentrant
The QNetworkReply class contains the data and headers for a request sent with QNetworkAccessManager.
NetworkError
Indicates all possible error conditions found during the processing of the request.
QRestReply is a convenience wrapper for QNetworkReply.
QRestReply(QRestReply &&other) noexcept
Move-constructs the reply from other.
bool isSuccess() const
Returns whether the HTTP status is between 200..299 and no further errors have occurred while receivi...
\macro QT_RESTRICTED_CAST_FROM_ASCII
Combined button and popup list for selecting options.
DBusConnection const char DBusError DBusBusType DBusError return DBusConnection DBusHandleMessageFunction void DBusFreeFunction return DBusConnection return DBusConnection return const char DBusError return DBusConnection DBusMessage dbus_uint32_t return DBusConnection dbus_bool_t DBusConnection DBusAddWatchFunction DBusRemoveWatchFunction DBusWatchToggledFunction void DBusFreeFunction return DBusConnection DBusDispatchStatusFunction void DBusFreeFunction DBusTimeout return DBusTimeout return DBusWatch return DBusWatch unsigned int return DBusError const DBusError return const DBusMessage return DBusMessage return DBusMessage return DBusMessage return DBusMessage return DBusMessage return DBusMessageIter int const void return DBusMessageIter DBusMessageIter return DBusMessageIter void DBusMessageIter void int return DBusMessage DBusMessageIter return DBusMessageIter return DBusMessageIter DBusMessageIter const char const char const char const char return DBusMessage return DBusMessage const char return DBusMessage dbus_bool_t return DBusMessage dbus_uint32_t return DBusMessage void
DBusConnection const char DBusError * error
constexpr void qt_ptr_swap(T *&lhs, T *&rhs) noexcept
#define QT_TECH_PREVIEW_API
\inmodule QtCore\reentrant