KLayout 0.29.8 (2024-11-26 926dac96c) [master]

API reference - Class QNetworkRequest

Notation used in Ruby API documentation

Module: QtNetwork

Description: Binding of QNetworkRequest

Sub-classes: Attribute, QFlags_Attribute, KnownHeaders, QFlags_KnownHeaders, Priority, QFlags_Priority, RedirectPolicy, QFlags_RedirectPolicy

Public constructors

new QNetworkRequestnew(const QUrl url = QUrl())Constructor QNetworkRequest::QNetworkRequest(const QUrl &url)
new QNetworkRequestnew(const QNetworkRequest other)Constructor QNetworkRequest::QNetworkRequest(const QNetworkRequest &other)

Public methods

[const]bool!=(const QNetworkRequest other)Method bool QNetworkRequest::operator!=(const QNetworkRequest &other)
[const]bool==(const QNetworkRequest other)Method bool QNetworkRequest::operator==(const QNetworkRequest &other)
void_assign(const QNetworkRequest other)Assigns another object to self
[const]QNetworkRequest ptr_const_castReturns a non-const reference to self.
void_createEnsures the C++ object is created
void_destroyExplicitly destroys the object
[const]bool_destroyed?Returns a value indicating whether the object was already destroyed
[const]bool_is_const_object?Returns a value indicating whether the reference is a const reference
void_manageMarks the object as managed by the script side.
void_unmanageMarks the object as no longer owned by the script side.
QNetworkRequestassign(const QNetworkRequest other)Method QNetworkRequest &QNetworkRequest::operator=(const QNetworkRequest &other)
[const]variantattribute(const QNetworkRequest_Attribute code,
variant defaultValue = QVariant())
Method QVariant QNetworkRequest::attribute(QNetworkRequest::Attribute code, const QVariant &defaultValue)
[const]new QNetworkRequest ptrdupCreates a copy of self
[const]boolhasRawHeader(bytes headerName)Method bool QNetworkRequest::hasRawHeader(const QByteArray &headerName)
[const]variantheader(const QNetworkRequest_KnownHeaders header)Method QVariant QNetworkRequest::header(QNetworkRequest::KnownHeaders header)
[const]intmaximumRedirectsAllowedMethod int QNetworkRequest::maximumRedirectsAllowed()
voidmaximumRedirectsAllowed=(int maximumRedirectsAllowed)Method void QNetworkRequest::setMaximumRedirectsAllowed(int maximumRedirectsAllowed)
[const]QObject ptroriginatingObjectMethod QObject *QNetworkRequest::originatingObject()
voidoriginatingObject=(QObject ptr object)Method void QNetworkRequest::setOriginatingObject(QObject *object)
[const]QNetworkRequest_PrioritypriorityMethod QNetworkRequest::Priority QNetworkRequest::priority()
voidpriority=(const QNetworkRequest_Priority priority)Method void QNetworkRequest::setPriority(QNetworkRequest::Priority priority)
[const]bytesrawHeader(bytes headerName)Method QByteArray QNetworkRequest::rawHeader(const QByteArray &headerName)
[const]bytes[]rawHeaderListMethod QList<QByteArray> QNetworkRequest::rawHeaderList()
voidsetAttribute(const QNetworkRequest_Attribute code,
variant value)
Method void QNetworkRequest::setAttribute(QNetworkRequest::Attribute code, const QVariant &value)
voidsetHeader(const QNetworkRequest_KnownHeaders header,
variant value)
Method void QNetworkRequest::setHeader(QNetworkRequest::KnownHeaders header, const QVariant &value)
voidsetMaximumRedirectsAllowed(int maximumRedirectsAllowed)Method void QNetworkRequest::setMaximumRedirectsAllowed(int maximumRedirectsAllowed)
voidsetOriginatingObject(QObject ptr object)Method void QNetworkRequest::setOriginatingObject(QObject *object)
voidsetPriority(const QNetworkRequest_Priority priority)Method void QNetworkRequest::setPriority(QNetworkRequest::Priority priority)
voidsetRawHeader(bytes headerName,
bytes value)
Method void QNetworkRequest::setRawHeader(const QByteArray &headerName, const QByteArray &value)
voidsetSslConfiguration(const QSslConfiguration configuration)Method void QNetworkRequest::setSslConfiguration(const QSslConfiguration &configuration)
voidsetUrl(const QUrl url)Method void QNetworkRequest::setUrl(const QUrl &url)
[const]QSslConfigurationsslConfigurationMethod QSslConfiguration QNetworkRequest::sslConfiguration()
voidsslConfiguration=(const QSslConfiguration configuration)Method void QNetworkRequest::setSslConfiguration(const QSslConfiguration &configuration)
voidswap(QNetworkRequest other)Method void QNetworkRequest::swap(QNetworkRequest &other)
[const]QUrlurlMethod QUrl QNetworkRequest::url()
voidurl=(const QUrl url)Method void QNetworkRequest::setUrl(const QUrl &url)

Public static methods and constants

[static,const]QNetworkRequest_AttributeAuthenticationReuseAttributeEnum constant QNetworkRequest::AuthenticationReuseAttribute
[static,const]QNetworkRequest_AttributeBackgroundRequestAttributeEnum constant QNetworkRequest::BackgroundRequestAttribute
[static,const]QNetworkRequest_AttributeCacheLoadControlAttributeEnum constant QNetworkRequest::CacheLoadControlAttribute
[static,const]QNetworkRequest_AttributeCacheSaveControlAttributeEnum constant QNetworkRequest::CacheSaveControlAttribute
[static,const]QNetworkRequest_AttributeConnectionEncryptedAttributeEnum constant QNetworkRequest::ConnectionEncryptedAttribute
[static,const]QNetworkRequest_KnownHeadersContentDispositionHeaderEnum constant QNetworkRequest::ContentDispositionHeader
[static,const]QNetworkRequest_KnownHeadersContentLengthHeaderEnum constant QNetworkRequest::ContentLengthHeader
[static,const]QNetworkRequest_KnownHeadersContentTypeHeaderEnum constant QNetworkRequest::ContentTypeHeader
[static,const]QNetworkRequest_KnownHeadersCookieHeaderEnum constant QNetworkRequest::CookieHeader
[static,const]QNetworkRequest_AttributeCookieLoadControlAttributeEnum constant QNetworkRequest::CookieLoadControlAttribute
[static,const]QNetworkRequest_AttributeCookieSaveControlAttributeEnum constant QNetworkRequest::CookieSaveControlAttribute
[static,const]QNetworkRequest_AttributeCustomVerbAttributeEnum constant QNetworkRequest::CustomVerbAttribute
[static,const]QNetworkRequest_AttributeDoNotBufferUploadDataAttributeEnum constant QNetworkRequest::DoNotBufferUploadDataAttribute
[static,const]QNetworkRequest_AttributeDownloadBufferAttributeEnum constant QNetworkRequest::DownloadBufferAttribute
[static,const]QNetworkRequest_KnownHeadersETagHeaderEnum constant QNetworkRequest::ETagHeader
[static,const]QNetworkRequest_AttributeEmitAllUploadProgressSignalsAttributeEnum constant QNetworkRequest::EmitAllUploadProgressSignalsAttribute
[static,const]QNetworkRequest_AttributeFollowRedirectsAttributeEnum constant QNetworkRequest::FollowRedirectsAttribute
[static,const]QNetworkRequest_AttributeHTTP2AllowedAttributeEnum constant QNetworkRequest::HTTP2AllowedAttribute
[static,const]QNetworkRequest_AttributeHTTP2WasUsedAttributeEnum constant QNetworkRequest::HTTP2WasUsedAttribute
[static,const]QNetworkRequest_PriorityHighPriorityEnum constant QNetworkRequest::HighPriority
[static,const]QNetworkRequest_AttributeHttp2DirectAttributeEnum constant QNetworkRequest::Http2DirectAttribute
[static,const]QNetworkRequest_AttributeHttpPipeliningAllowedAttributeEnum constant QNetworkRequest::HttpPipeliningAllowedAttribute
[static,const]QNetworkRequest_AttributeHttpPipeliningWasUsedAttributeEnum constant QNetworkRequest::HttpPipeliningWasUsedAttribute
[static,const]QNetworkRequest_AttributeHttpReasonPhraseAttributeEnum constant QNetworkRequest::HttpReasonPhraseAttribute
[static,const]QNetworkRequest_AttributeHttpStatusCodeAttributeEnum constant QNetworkRequest::HttpStatusCodeAttribute
[static,const]QNetworkRequest_KnownHeadersIfMatchHeaderEnum constant QNetworkRequest::IfMatchHeader
[static,const]QNetworkRequest_KnownHeadersIfModifiedSinceHeaderEnum constant QNetworkRequest::IfModifiedSinceHeader
[static,const]QNetworkRequest_KnownHeadersIfNoneMatchHeaderEnum constant QNetworkRequest::IfNoneMatchHeader
[static,const]QNetworkRequest_KnownHeadersLastModifiedHeaderEnum constant QNetworkRequest::LastModifiedHeader
[static,const]QNetworkRequest_KnownHeadersLocationHeaderEnum constant QNetworkRequest::LocationHeader
[static,const]QNetworkRequest_PriorityLowPriorityEnum constant QNetworkRequest::LowPriority
[static,const]QNetworkRequest_RedirectPolicyManualRedirectPolicyEnum constant QNetworkRequest::ManualRedirectPolicy
[static,const]QNetworkRequest_AttributeMaximumDownloadBufferSizeAttributeEnum constant QNetworkRequest::MaximumDownloadBufferSizeAttribute
[static,const]QNetworkRequest_RedirectPolicyNoLessSafeRedirectPolicyEnum constant QNetworkRequest::NoLessSafeRedirectPolicy
[static,const]QNetworkRequest_PriorityNormalPriorityEnum constant QNetworkRequest::NormalPriority
[static,const]QNetworkRequest_AttributeOriginalContentLengthAttributeEnum constant QNetworkRequest::OriginalContentLengthAttribute
[static,const]QNetworkRequest_AttributeRedirectPolicyAttributeEnum constant QNetworkRequest::RedirectPolicyAttribute
[static,const]QNetworkRequest_AttributeRedirectionTargetAttributeEnum constant QNetworkRequest::RedirectionTargetAttribute
[static,const]QNetworkRequest_AttributeResourceTypeAttributeEnum constant QNetworkRequest::ResourceTypeAttribute
[static,const]QNetworkRequest_RedirectPolicySameOriginRedirectPolicyEnum constant QNetworkRequest::SameOriginRedirectPolicy
[static,const]QNetworkRequest_KnownHeadersServerHeaderEnum constant QNetworkRequest::ServerHeader
[static,const]QNetworkRequest_KnownHeadersSetCookieHeaderEnum constant QNetworkRequest::SetCookieHeader
[static,const]QNetworkRequest_AttributeSourceIsFromCacheAttributeEnum constant QNetworkRequest::SourceIsFromCacheAttribute
[static,const]QNetworkRequest_AttributeSpdyAllowedAttributeEnum constant QNetworkRequest::SpdyAllowedAttribute
[static,const]QNetworkRequest_AttributeSpdyWasUsedAttributeEnum constant QNetworkRequest::SpdyWasUsedAttribute
[static,const]QNetworkRequest_AttributeSynchronousRequestAttributeEnum constant QNetworkRequest::SynchronousRequestAttribute
[static,const]QNetworkRequest_AttributeUserEnum constant QNetworkRequest::User
[static,const]QNetworkRequest_KnownHeadersUserAgentHeaderEnum constant QNetworkRequest::UserAgentHeader
[static,const]QNetworkRequest_AttributeUserMaxEnum constant QNetworkRequest::UserMax
[static,const]QNetworkRequest_RedirectPolicyUserVerifiedRedirectPolicyEnum constant QNetworkRequest::UserVerifiedRedirectPolicy

Deprecated methods (protected, public, static, non-static and constructors)

voidcreateUse of this method is deprecated. Use _create instead
voiddestroyUse of this method is deprecated. Use _destroy instead
[const]booldestroyed?Use of this method is deprecated. Use _destroyed? instead
[const]boolis_const_object?Use of this method is deprecated. Use _is_const_object? instead

Detailed description

!=

Signature: [const] bool != (const QNetworkRequest other)

Description: Method bool QNetworkRequest::operator!=(const QNetworkRequest &other)

==

Signature: [const] bool == (const QNetworkRequest other)

Description: Method bool QNetworkRequest::operator==(const QNetworkRequest &other)

AuthenticationReuseAttribute

Signature: [static,const] QNetworkRequest_Attribute AuthenticationReuseAttribute

Description: Enum constant QNetworkRequest::AuthenticationReuseAttribute

Python specific notes:
The object exposes a readable attribute 'AuthenticationReuseAttribute'. This is the getter.

BackgroundRequestAttribute

Signature: [static,const] QNetworkRequest_Attribute BackgroundRequestAttribute

Description: Enum constant QNetworkRequest::BackgroundRequestAttribute

Python specific notes:
The object exposes a readable attribute 'BackgroundRequestAttribute'. This is the getter.

CacheLoadControlAttribute

Signature: [static,const] QNetworkRequest_Attribute CacheLoadControlAttribute

Description: Enum constant QNetworkRequest::CacheLoadControlAttribute

Python specific notes:
The object exposes a readable attribute 'CacheLoadControlAttribute'. This is the getter.

CacheSaveControlAttribute

Signature: [static,const] QNetworkRequest_Attribute CacheSaveControlAttribute

Description: Enum constant QNetworkRequest::CacheSaveControlAttribute

Python specific notes:
The object exposes a readable attribute 'CacheSaveControlAttribute'. This is the getter.

ConnectionEncryptedAttribute

Signature: [static,const] QNetworkRequest_Attribute ConnectionEncryptedAttribute

Description: Enum constant QNetworkRequest::ConnectionEncryptedAttribute

Python specific notes:
The object exposes a readable attribute 'ConnectionEncryptedAttribute'. This is the getter.

ContentDispositionHeader

Signature: [static,const] QNetworkRequest_KnownHeaders ContentDispositionHeader

Description: Enum constant QNetworkRequest::ContentDispositionHeader

Python specific notes:
The object exposes a readable attribute 'ContentDispositionHeader'. This is the getter.

ContentLengthHeader

Signature: [static,const] QNetworkRequest_KnownHeaders ContentLengthHeader

Description: Enum constant QNetworkRequest::ContentLengthHeader

Python specific notes:
The object exposes a readable attribute 'ContentLengthHeader'. This is the getter.

ContentTypeHeader

Signature: [static,const] QNetworkRequest_KnownHeaders ContentTypeHeader

Description: Enum constant QNetworkRequest::ContentTypeHeader

Python specific notes:
The object exposes a readable attribute 'ContentTypeHeader'. This is the getter.

CookieHeader

Signature: [static,const] QNetworkRequest_KnownHeaders CookieHeader

Description: Enum constant QNetworkRequest::CookieHeader

Python specific notes:
The object exposes a readable attribute 'CookieHeader'. This is the getter.

CookieLoadControlAttribute

Signature: [static,const] QNetworkRequest_Attribute CookieLoadControlAttribute

Description: Enum constant QNetworkRequest::CookieLoadControlAttribute

Python specific notes:
The object exposes a readable attribute 'CookieLoadControlAttribute'. This is the getter.

CookieSaveControlAttribute

Signature: [static,const] QNetworkRequest_Attribute CookieSaveControlAttribute

Description: Enum constant QNetworkRequest::CookieSaveControlAttribute

Python specific notes:
The object exposes a readable attribute 'CookieSaveControlAttribute'. This is the getter.

CustomVerbAttribute

Signature: [static,const] QNetworkRequest_Attribute CustomVerbAttribute

Description: Enum constant QNetworkRequest::CustomVerbAttribute

Python specific notes:
The object exposes a readable attribute 'CustomVerbAttribute'. This is the getter.

DoNotBufferUploadDataAttribute

Signature: [static,const] QNetworkRequest_Attribute DoNotBufferUploadDataAttribute

Description: Enum constant QNetworkRequest::DoNotBufferUploadDataAttribute

Python specific notes:
The object exposes a readable attribute 'DoNotBufferUploadDataAttribute'. This is the getter.

DownloadBufferAttribute

Signature: [static,const] QNetworkRequest_Attribute DownloadBufferAttribute

Description: Enum constant QNetworkRequest::DownloadBufferAttribute

Python specific notes:
The object exposes a readable attribute 'DownloadBufferAttribute'. This is the getter.

ETagHeader

Signature: [static,const] QNetworkRequest_KnownHeaders ETagHeader

Description: Enum constant QNetworkRequest::ETagHeader

Python specific notes:
The object exposes a readable attribute 'ETagHeader'. This is the getter.

EmitAllUploadProgressSignalsAttribute

Signature: [static,const] QNetworkRequest_Attribute EmitAllUploadProgressSignalsAttribute

Description: Enum constant QNetworkRequest::EmitAllUploadProgressSignalsAttribute

Python specific notes:
The object exposes a readable attribute 'EmitAllUploadProgressSignalsAttribute'. This is the getter.

FollowRedirectsAttribute

Signature: [static,const] QNetworkRequest_Attribute FollowRedirectsAttribute

Description: Enum constant QNetworkRequest::FollowRedirectsAttribute

Python specific notes:
The object exposes a readable attribute 'FollowRedirectsAttribute'. This is the getter.

HTTP2AllowedAttribute

Signature: [static,const] QNetworkRequest_Attribute HTTP2AllowedAttribute

Description: Enum constant QNetworkRequest::HTTP2AllowedAttribute

Python specific notes:
The object exposes a readable attribute 'HTTP2AllowedAttribute'. This is the getter.

HTTP2WasUsedAttribute

Signature: [static,const] QNetworkRequest_Attribute HTTP2WasUsedAttribute

Description: Enum constant QNetworkRequest::HTTP2WasUsedAttribute

Python specific notes:
The object exposes a readable attribute 'HTTP2WasUsedAttribute'. This is the getter.

HighPriority

Signature: [static,const] QNetworkRequest_Priority HighPriority

Description: Enum constant QNetworkRequest::HighPriority

Python specific notes:
The object exposes a readable attribute 'HighPriority'. This is the getter.

Http2DirectAttribute

Signature: [static,const] QNetworkRequest_Attribute Http2DirectAttribute

Description: Enum constant QNetworkRequest::Http2DirectAttribute

Python specific notes:
The object exposes a readable attribute 'Http2DirectAttribute'. This is the getter.

HttpPipeliningAllowedAttribute

Signature: [static,const] QNetworkRequest_Attribute HttpPipeliningAllowedAttribute

Description: Enum constant QNetworkRequest::HttpPipeliningAllowedAttribute

Python specific notes:
The object exposes a readable attribute 'HttpPipeliningAllowedAttribute'. This is the getter.

HttpPipeliningWasUsedAttribute

Signature: [static,const] QNetworkRequest_Attribute HttpPipeliningWasUsedAttribute

Description: Enum constant QNetworkRequest::HttpPipeliningWasUsedAttribute

Python specific notes:
The object exposes a readable attribute 'HttpPipeliningWasUsedAttribute'. This is the getter.

HttpReasonPhraseAttribute

Signature: [static,const] QNetworkRequest_Attribute HttpReasonPhraseAttribute

Description: Enum constant QNetworkRequest::HttpReasonPhraseAttribute

Python specific notes:
The object exposes a readable attribute 'HttpReasonPhraseAttribute'. This is the getter.

HttpStatusCodeAttribute

Signature: [static,const] QNetworkRequest_Attribute HttpStatusCodeAttribute

Description: Enum constant QNetworkRequest::HttpStatusCodeAttribute

Python specific notes:
The object exposes a readable attribute 'HttpStatusCodeAttribute'. This is the getter.

IfMatchHeader

Signature: [static,const] QNetworkRequest_KnownHeaders IfMatchHeader

Description: Enum constant QNetworkRequest::IfMatchHeader

Python specific notes:
The object exposes a readable attribute 'IfMatchHeader'. This is the getter.

IfModifiedSinceHeader

Signature: [static,const] QNetworkRequest_KnownHeaders IfModifiedSinceHeader

Description: Enum constant QNetworkRequest::IfModifiedSinceHeader

Python specific notes:
The object exposes a readable attribute 'IfModifiedSinceHeader'. This is the getter.

IfNoneMatchHeader

Signature: [static,const] QNetworkRequest_KnownHeaders IfNoneMatchHeader

Description: Enum constant QNetworkRequest::IfNoneMatchHeader

Python specific notes:
The object exposes a readable attribute 'IfNoneMatchHeader'. This is the getter.

LastModifiedHeader

Signature: [static,const] QNetworkRequest_KnownHeaders LastModifiedHeader

Description: Enum constant QNetworkRequest::LastModifiedHeader

Python specific notes:
The object exposes a readable attribute 'LastModifiedHeader'. This is the getter.

LocationHeader

Signature: [static,const] QNetworkRequest_KnownHeaders LocationHeader

Description: Enum constant QNetworkRequest::LocationHeader

Python specific notes:
The object exposes a readable attribute 'LocationHeader'. This is the getter.

LowPriority

Signature: [static,const] QNetworkRequest_Priority LowPriority

Description: Enum constant QNetworkRequest::LowPriority

Python specific notes:
The object exposes a readable attribute 'LowPriority'. This is the getter.

ManualRedirectPolicy

Signature: [static,const] QNetworkRequest_RedirectPolicy ManualRedirectPolicy

Description: Enum constant QNetworkRequest::ManualRedirectPolicy

Python specific notes:
The object exposes a readable attribute 'ManualRedirectPolicy'. This is the getter.

MaximumDownloadBufferSizeAttribute

Signature: [static,const] QNetworkRequest_Attribute MaximumDownloadBufferSizeAttribute

Description: Enum constant QNetworkRequest::MaximumDownloadBufferSizeAttribute

Python specific notes:
The object exposes a readable attribute 'MaximumDownloadBufferSizeAttribute'. This is the getter.

NoLessSafeRedirectPolicy

Signature: [static,const] QNetworkRequest_RedirectPolicy NoLessSafeRedirectPolicy

Description: Enum constant QNetworkRequest::NoLessSafeRedirectPolicy

Python specific notes:
The object exposes a readable attribute 'NoLessSafeRedirectPolicy'. This is the getter.

NormalPriority

Signature: [static,const] QNetworkRequest_Priority NormalPriority

Description: Enum constant QNetworkRequest::NormalPriority

Python specific notes:
The object exposes a readable attribute 'NormalPriority'. This is the getter.

OriginalContentLengthAttribute

Signature: [static,const] QNetworkRequest_Attribute OriginalContentLengthAttribute

Description: Enum constant QNetworkRequest::OriginalContentLengthAttribute

Python specific notes:
The object exposes a readable attribute 'OriginalContentLengthAttribute'. This is the getter.

RedirectPolicyAttribute

Signature: [static,const] QNetworkRequest_Attribute RedirectPolicyAttribute

Description: Enum constant QNetworkRequest::RedirectPolicyAttribute

Python specific notes:
The object exposes a readable attribute 'RedirectPolicyAttribute'. This is the getter.

RedirectionTargetAttribute

Signature: [static,const] QNetworkRequest_Attribute RedirectionTargetAttribute

Description: Enum constant QNetworkRequest::RedirectionTargetAttribute

Python specific notes:
The object exposes a readable attribute 'RedirectionTargetAttribute'. This is the getter.

ResourceTypeAttribute

Signature: [static,const] QNetworkRequest_Attribute ResourceTypeAttribute

Description: Enum constant QNetworkRequest::ResourceTypeAttribute

Python specific notes:
The object exposes a readable attribute 'ResourceTypeAttribute'. This is the getter.

SameOriginRedirectPolicy

Signature: [static,const] QNetworkRequest_RedirectPolicy SameOriginRedirectPolicy

Description: Enum constant QNetworkRequest::SameOriginRedirectPolicy

Python specific notes:
The object exposes a readable attribute 'SameOriginRedirectPolicy'. This is the getter.

ServerHeader

Signature: [static,const] QNetworkRequest_KnownHeaders ServerHeader

Description: Enum constant QNetworkRequest::ServerHeader

Python specific notes:
The object exposes a readable attribute 'ServerHeader'. This is the getter.

SetCookieHeader

Signature: [static,const] QNetworkRequest_KnownHeaders SetCookieHeader

Description: Enum constant QNetworkRequest::SetCookieHeader

Python specific notes:
The object exposes a readable attribute 'SetCookieHeader'. This is the getter.

SourceIsFromCacheAttribute

Signature: [static,const] QNetworkRequest_Attribute SourceIsFromCacheAttribute

Description: Enum constant QNetworkRequest::SourceIsFromCacheAttribute

Python specific notes:
The object exposes a readable attribute 'SourceIsFromCacheAttribute'. This is the getter.

SpdyAllowedAttribute

Signature: [static,const] QNetworkRequest_Attribute SpdyAllowedAttribute

Description: Enum constant QNetworkRequest::SpdyAllowedAttribute

Python specific notes:
The object exposes a readable attribute 'SpdyAllowedAttribute'. This is the getter.

SpdyWasUsedAttribute

Signature: [static,const] QNetworkRequest_Attribute SpdyWasUsedAttribute

Description: Enum constant QNetworkRequest::SpdyWasUsedAttribute

Python specific notes:
The object exposes a readable attribute 'SpdyWasUsedAttribute'. This is the getter.

SynchronousRequestAttribute

Signature: [static,const] QNetworkRequest_Attribute SynchronousRequestAttribute

Description: Enum constant QNetworkRequest::SynchronousRequestAttribute

Python specific notes:
The object exposes a readable attribute 'SynchronousRequestAttribute'. This is the getter.

User

Signature: [static,const] QNetworkRequest_Attribute User

Description: Enum constant QNetworkRequest::User

Python specific notes:
The object exposes a readable attribute 'User'. This is the getter.

UserAgentHeader

Signature: [static,const] QNetworkRequest_KnownHeaders UserAgentHeader

Description: Enum constant QNetworkRequest::UserAgentHeader

Python specific notes:
The object exposes a readable attribute 'UserAgentHeader'. This is the getter.

UserMax

Signature: [static,const] QNetworkRequest_Attribute UserMax

Description: Enum constant QNetworkRequest::UserMax

Python specific notes:
The object exposes a readable attribute 'UserMax'. This is the getter.

UserVerifiedRedirectPolicy

Signature: [static,const] QNetworkRequest_RedirectPolicy UserVerifiedRedirectPolicy

Description: Enum constant QNetworkRequest::UserVerifiedRedirectPolicy

Python specific notes:
The object exposes a readable attribute 'UserVerifiedRedirectPolicy'. This is the getter.

_assign

Signature: void _assign (const QNetworkRequest other)

Description: Assigns another object to self

_const_cast

Signature: [const] QNetworkRequest ptr _const_cast

Description: Returns a non-const reference to self.

Basically, this method allows turning a const object reference to a non-const one. This method is provided as last resort to remove the constness from an object. Usually there is a good reason for a const object reference, so using this method may have undesired side effects.

This method has been introduced in version 0.29.6.

_create

Signature: void _create

Description: Ensures the C++ object is created

Use this method to ensure the C++ object is created, for example to ensure that resources are allocated. Usually C++ objects are created on demand and not necessarily when the script object is created.

_destroy

Signature: void _destroy

Description: Explicitly destroys the object

Explicitly destroys the object on C++ side if it was owned by the script interpreter. Subsequent access to this object will throw an exception. If the object is not owned by the script, this method will do nothing.

_destroyed?

Signature: [const] bool _destroyed?

Description: Returns a value indicating whether the object was already destroyed

This method returns true, if the object was destroyed, either explicitly or by the C++ side. The latter may happen, if the object is owned by a C++ object which got destroyed itself.

_is_const_object?

Signature: [const] bool _is_const_object?

Description: Returns a value indicating whether the reference is a const reference

This method returns true, if self is a const reference. In that case, only const methods may be called on self.

_manage

Signature: void _manage

Description: Marks the object as managed by the script side.

After calling this method on an object, the script side will be responsible for the management of the object. This method may be called if an object is returned from a C++ function and the object is known not to be owned by any C++ instance. If necessary, the script side may delete the object if the script's reference is no longer required.

Usually it's not required to call this method. It has been introduced in version 0.24.

_unmanage

Signature: void _unmanage

Description: Marks the object as no longer owned by the script side.

Calling this method will make this object no longer owned by the script's memory management. Instead, the object must be managed in some other way. Usually this method may be called if it is known that some C++ object holds and manages this object. Technically speaking, this method will turn the script's reference into a weak reference. After the script engine decides to delete the reference, the object itself will still exist. If the object is not managed otherwise, memory leaks will occur.

Usually it's not required to call this method. It has been introduced in version 0.24.

assign

Signature: QNetworkRequest assign (const QNetworkRequest other)

Description: Method QNetworkRequest &QNetworkRequest::operator=(const QNetworkRequest &other)

attribute

Signature: [const] variant attribute (const QNetworkRequest_Attribute code, variant defaultValue = QVariant())

Description: Method QVariant QNetworkRequest::attribute(QNetworkRequest::Attribute code, const QVariant &defaultValue)

create

Signature: void create

Description: Ensures the C++ object is created

Use of this method is deprecated. Use _create instead

Use this method to ensure the C++ object is created, for example to ensure that resources are allocated. Usually C++ objects are created on demand and not necessarily when the script object is created.

destroy

Signature: void destroy

Description: Explicitly destroys the object

Use of this method is deprecated. Use _destroy instead

Explicitly destroys the object on C++ side if it was owned by the script interpreter. Subsequent access to this object will throw an exception. If the object is not owned by the script, this method will do nothing.

destroyed?

Signature: [const] bool destroyed?

Description: Returns a value indicating whether the object was already destroyed

Use of this method is deprecated. Use _destroyed? instead

This method returns true, if the object was destroyed, either explicitly or by the C++ side. The latter may happen, if the object is owned by a C++ object which got destroyed itself.

dup

Signature: [const] new QNetworkRequest ptr dup

Description: Creates a copy of self

Python specific notes:
This method also implements '__copy__' and '__deepcopy__'.

hasRawHeader

Signature: [const] bool hasRawHeader (bytes headerName)

Description: Method bool QNetworkRequest::hasRawHeader(const QByteArray &headerName)

header

Signature: [const] variant header (const QNetworkRequest_KnownHeaders header)

Description: Method QVariant QNetworkRequest::header(QNetworkRequest::KnownHeaders header)

is_const_object?

Signature: [const] bool is_const_object?

Description: Returns a value indicating whether the reference is a const reference

Use of this method is deprecated. Use _is_const_object? instead

This method returns true, if self is a const reference. In that case, only const methods may be called on self.

maximumRedirectsAllowed

Signature: [const] int maximumRedirectsAllowed

Description: Method int QNetworkRequest::maximumRedirectsAllowed()

Python specific notes:
The object exposes a readable attribute 'maximumRedirectsAllowed'. This is the getter.

maximumRedirectsAllowed=

Signature: void maximumRedirectsAllowed= (int maximumRedirectsAllowed)

Description: Method void QNetworkRequest::setMaximumRedirectsAllowed(int maximumRedirectsAllowed)

Python specific notes:
The object exposes a writable attribute 'maximumRedirectsAllowed'. This is the setter.

new

(1) Signature: [static] new QNetworkRequest new (const QUrl url = QUrl())

Description: Constructor QNetworkRequest::QNetworkRequest(const QUrl &url)

This method creates an object of class QNetworkRequest.

Python specific notes:
This method is the default initializer of the object.

(2) Signature: [static] new QNetworkRequest new (const QNetworkRequest other)

Description: Constructor QNetworkRequest::QNetworkRequest(const QNetworkRequest &other)

This method creates an object of class QNetworkRequest.

Python specific notes:
This method is the default initializer of the object.

originatingObject

Signature: [const] QObject ptr originatingObject

Description: Method QObject *QNetworkRequest::originatingObject()

Python specific notes:
The object exposes a readable attribute 'originatingObject'. This is the getter.

originatingObject=

Signature: void originatingObject= (QObject ptr object)

Description: Method void QNetworkRequest::setOriginatingObject(QObject *object)

Python specific notes:
The object exposes a writable attribute 'originatingObject'. This is the setter.

priority

Signature: [const] QNetworkRequest_Priority priority

Description: Method QNetworkRequest::Priority QNetworkRequest::priority()

Python specific notes:
The object exposes a readable attribute 'priority'. This is the getter.

priority=

Signature: void priority= (const QNetworkRequest_Priority priority)

Description: Method void QNetworkRequest::setPriority(QNetworkRequest::Priority priority)

Python specific notes:
The object exposes a writable attribute 'priority'. This is the setter.

rawHeader

Signature: [const] bytes rawHeader (bytes headerName)

Description: Method QByteArray QNetworkRequest::rawHeader(const QByteArray &headerName)

rawHeaderList

Signature: [const] bytes[] rawHeaderList

Description: Method QList<QByteArray> QNetworkRequest::rawHeaderList()

setAttribute

Signature: void setAttribute (const QNetworkRequest_Attribute code, variant value)

Description: Method void QNetworkRequest::setAttribute(QNetworkRequest::Attribute code, const QVariant &value)

setHeader

Signature: void setHeader (const QNetworkRequest_KnownHeaders header, variant value)

Description: Method void QNetworkRequest::setHeader(QNetworkRequest::KnownHeaders header, const QVariant &value)

setMaximumRedirectsAllowed

Signature: void setMaximumRedirectsAllowed (int maximumRedirectsAllowed)

Description: Method void QNetworkRequest::setMaximumRedirectsAllowed(int maximumRedirectsAllowed)

Python specific notes:
The object exposes a writable attribute 'maximumRedirectsAllowed'. This is the setter.

setOriginatingObject

Signature: void setOriginatingObject (QObject ptr object)

Description: Method void QNetworkRequest::setOriginatingObject(QObject *object)

Python specific notes:
The object exposes a writable attribute 'originatingObject'. This is the setter.

setPriority

Signature: void setPriority (const QNetworkRequest_Priority priority)

Description: Method void QNetworkRequest::setPriority(QNetworkRequest::Priority priority)

Python specific notes:
The object exposes a writable attribute 'priority'. This is the setter.

setRawHeader

Signature: void setRawHeader (bytes headerName, bytes value)

Description: Method void QNetworkRequest::setRawHeader(const QByteArray &headerName, const QByteArray &value)

setSslConfiguration

Signature: void setSslConfiguration (const QSslConfiguration configuration)

Description: Method void QNetworkRequest::setSslConfiguration(const QSslConfiguration &configuration)

Python specific notes:
The object exposes a writable attribute 'sslConfiguration'. This is the setter.

setUrl

Signature: void setUrl (const QUrl url)

Description: Method void QNetworkRequest::setUrl(const QUrl &url)

Python specific notes:
The object exposes a writable attribute 'url'. This is the setter.

sslConfiguration

Signature: [const] QSslConfiguration sslConfiguration

Description: Method QSslConfiguration QNetworkRequest::sslConfiguration()

Python specific notes:
The object exposes a readable attribute 'sslConfiguration'. This is the getter.

sslConfiguration=

Signature: void sslConfiguration= (const QSslConfiguration configuration)

Description: Method void QNetworkRequest::setSslConfiguration(const QSslConfiguration &configuration)

Python specific notes:
The object exposes a writable attribute 'sslConfiguration'. This is the setter.

swap

Signature: void swap (QNetworkRequest other)

Description: Method void QNetworkRequest::swap(QNetworkRequest &other)

url

Signature: [const] QUrl url

Description: Method QUrl QNetworkRequest::url()

Python specific notes:
The object exposes a readable attribute 'url'. This is the getter.

url=

Signature: void url= (const QUrl url)

Description: Method void QNetworkRequest::setUrl(const QUrl &url)

Python specific notes:
The object exposes a writable attribute 'url'. This is the setter.