4#ifndef QNETWORKREQUEST_H
5#define QNETWORKREQUEST_H
7#include <QtNetwork/qtnetworkglobal.h>
8#include <QtCore/QSharedDataPointer>
9#include <QtCore/QString>
11#include <QtCore/QVariant>
93 UserVerifiedRedirectPolicy
97 DefaultTransferTimeoutConstant = 30000
135 void setOriginatingObject(
QObject *
object);
136 QObject *originatingObject()
const;
138 Priority priority()
const;
142 int maximumRedirectsAllowed()
const;
143 void setMaximumRedirectsAllowed(
int maximumRedirectsAllowed);
145 QString peerVerifyName()
const;
146 void setPeerVerifyName(
const QString &peerName);
154 qint64 decompressedSafetyCheckThreshold()
const;
155 void setDecompressedSafetyCheckThreshold(
qint64 threshold);
158#if QT_CONFIG(http) || defined (Q_OS_WASM)
159 int transferTimeout()
const;
160 void setTransferTimeout(
int timeout = DefaultTransferTimeoutConstant);
173 QNetworkRequest__RedirectPolicy, Q_NETWORK_EXPORT)
The QHttp1Configuration class controls HTTP/1 parameters and settings.
The QHttp2Configuration class controls HTTP/2 parameters and settings.
The QNetworkRequest class holds a request to be sent with QNetworkAccessManager.
KnownHeaders
List of known header types that QNetworkRequest parses.
@ ContentDispositionHeader
@ SourceIsFromCacheAttribute
@ UseCredentialsAttribute
@ EmitAllUploadProgressSignalsAttribute
@ CookieLoadControlAttribute
@ OriginalContentLengthAttribute
@ HttpPipeliningWasUsedAttribute
@ AutoDeleteReplyOnFinishAttribute
@ CookieSaveControlAttribute
@ HttpStatusCodeAttribute
@ CacheSaveControlAttribute
@ CacheLoadControlAttribute
@ RedirectPolicyAttribute
@ DownloadBufferAttribute
@ DoNotBufferUploadDataAttribute
@ ConnectionCacheExpiryTimeoutSecondsAttribute
@ HttpPipeliningAllowedAttribute
@ RedirectionTargetAttribute
@ BackgroundRequestAttribute
@ AuthenticationReuseAttribute
@ MaximumDownloadBufferSizeAttribute
@ HttpReasonPhraseAttribute
@ SynchronousRequestAttribute
@ ConnectionEncryptedAttribute
@ Http2CleartextAllowedAttribute
@ SameOriginRedirectPolicy
@ NoLessSafeRedirectPolicy
QNetworkRequest & operator=(QNetworkRequest &&other) noexcept
void swap(QNetworkRequest &other) noexcept
bool operator!=(const QNetworkRequest &other) const
Returns false if this object is not the same as other.
CacheLoadControl
Controls the caching mechanism of QNetworkAccessManager.
The QSslConfiguration class holds the configuration and state of an SSL connection.
\macro QT_RESTRICTED_CAST_FROM_ASCII
myinstance setPriority(MyClass::VeryHigh)
Combined button and popup list for selecting options.
static QString header(const QString &name)
EGLOutputLayerEXT EGLint EGLAttrib value
[5]
EGLOutputLayerEXT EGLint attribute
static QByteArray headerName(QNetworkRequest::KnownHeaders header)
GLbitfield GLuint64 timeout
[4]
bool operator==(const QRandomGenerator &rng1, const QRandomGenerator &rng2)
request setUrl(QUrl("http://qt-project.org"))
QUrl url("example.com")
[constructor-url-reference]
app setAttribute(Qt::AA_DontShowIconsInMenus)
textPart setHeader(QNetworkRequest::ContentDispositionHeader, QVariant("form-data; name=\"text\""))
imagePart setRawHeader("Content-ID", "my@content.id")
sslSocket setSslConfiguration(config)