QNetworkRequest

#include <QtNetwork/QNetworkRequest>

More information will be added here shortly. For now, you'll find more extensive information about this class in the Qt reference for QNetworkRequest


Overview

Public Functions Index

QNetworkRequest (const QUrl &url=QUrl())
QNetworkRequest (const QNetworkRequest &other)
~QNetworkRequest ()
QVariantattribute (Attribute code, const QVariant &defaultValue=QVariant()) const
boolhasRawHeader (const QByteArray &headerName) const
QVariantheader (KnownHeaders header) const
booloperator!= (const QNetworkRequest &other) const
QNetworkRequest &operator= (const QNetworkRequest &other)
booloperator== (const QNetworkRequest &other) const
QObject *originatingObject () const
Prioritypriority () const
QByteArrayrawHeader (const QByteArray &headerName) const
QList< QByteArray >rawHeaderList () const
voidsetAttribute (Attribute code, const QVariant &value)
voidsetHeader (KnownHeaders header, const QVariant &value)
voidsetOriginatingObject (QObject *object)
voidsetPriority (Priority priority)
voidsetRawHeader (const QByteArray &headerName, const QByteArray &value)
voidsetSslConfiguration (const QSslConfiguration &configuration)
voidsetUrl (const QUrl &url)
QSslConfigurationsslConfiguration () const
QUrlurl () const

Public Types

Attribute

HttpStatusCodeAttribute
HttpReasonPhraseAttribute
RedirectionTargetAttribute
ConnectionEncryptedAttribute
CacheLoadControlAttribute
CacheSaveControlAttribute
SourceIsFromCacheAttribute
DoNotBufferUploadDataAttribute
HttpPipeliningAllowedAttribute
HttpPipeliningWasUsedAttribute
CustomVerbAttribute
CookieLoadControlAttribute
AuthenticationReuseAttribute
CookieSaveControlAttribute
MaximumDownloadBufferSizeAttribute
DownloadBufferAttribute
SynchronousRequestAttribute
User 1000
UserMax 32767

CacheLoadControl

AlwaysNetwork
PreferNetwork
PreferCache
AlwaysCache

KnownHeaders

ContentTypeHeader
ContentLengthHeader
LocationHeader
LastModifiedHeader
CookieHeader
SetCookieHeader
ContentDispositionHeader

LoadControl

Automatic 0
Manual

Priority

HighPriority 1
NormalPriority 3
LowPriority 5

Public Functions

QNetworkRequest (

QNetworkRequest (

~QNetworkRequest ()

Destructor.

QVariant attribute (
  • Attributecode,
  • const QVariant &defaultValue )

bool hasRawHeader (

QVariant header (
  • KnownHeadersheader)

bool operator!= (

QNetworkRequest & operator= (

bool operator== (

QObject * originatingObject ()

Priority priority ()

QByteArray rawHeader (

QList< QByteArray > rawHeaderList ()

void setAttribute (

void setHeader (
  • KnownHeadersheader,
  • const QVariant &value )

void setOriginatingObject (

void setPriority (
  • Prioritypriority)

void setRawHeader (

void setSslConfiguration (

void setUrl (

QSslConfiguration sslConfiguration ()

QUrl url ()

Last modified: 2015-07-24



Got questions about leaving a comment? Get answers from our Disqus FAQ.

comments powered by Disqus