19 #include "../FxCommonFramework.h"
20 #include "../UI/FxUIObject.h"
22 #include <QtCore/QByteArray>
23 #include <QtCore/QList>
24 #include <QtCore/QUrl>
25 #include <QtCore/QVariant>
28 template<
typename T >
33 class CFxNANetworkRequestImpl;
35 #if defined( Q_OS_IOS )
37 #elif defined( Q_OS_ANDROID )
45 #include <QtNetwork/QNetworkRequest>
216 CFxNANetworkRequestImpl *m_pImpl;
QByteArray CFxNAByteArray
QNetworkRequest * FxNetworkRequestHandle
void setHeader(CFxNANetworkRequest::KnownHeaders header, const CFxNAVariant &value)
CFxNANetworkRequest & operator=(const CFxNANetworkRequest &other)
void setUrl(const CFxNAUrl &url)
CFxNANetworkRequest(const CFxNANetworkRequest &other)
@ CookieHeader
Corresponds to the HTTP Cookie header and contains a CFxList CFxNetworkCookie representing the cookie...
@ ContentTypeHeader
Corresponds to the HTTP Content-Type header and contains a string containing the media (MIME) type an...
@ UserAgentHeader
The User-Agent header sent by HTTP clients.
@ LocationHeader
Corresponds to the HTTP Location header and contains a URL representing the actual location of the da...
@ SetCookieHeader
Corresponds to the HTTP Set-Cookie header and contains a CFxList CFxNetworkCookie representing the co...
@ ContentDispositionHeader
Corresponds to the HTTP Content-Disposition header and contains a string containing the disposition t...
@ LastModifiedHeader
Corresponds to the HTTP Last-Modified header and contains a CFxDateTime representing the last modific...
@ ContentLengthHeader
Corresponds to the HTTP Content-Length header and contains the length in bytes of the data transmitte...
CFxNAList< CFxNAByteArray > rawHeaderList() const
void setRawHeader(const CFxNAByteArray &headerName, const CFxNAByteArray &headerValue)
@ SpdyWasUsedAttribute
Replies only, type: CFxMetaType::Bool Indicates whether SPDY was used for receiving this reply.
@ CustomVerbAttribute
Requests only, type: CFxMetaType::QByteArray Holds the value for the custom HTTP verb to send (destin...
@ HTTP2WasUsedAttribute
Replies only, type: CFxMetaType::Bool (default: false) Indicates whether HTTP/2 was used for receivin...
@ DoNotBufferUploadDataAttribute
Requests only, type: CFxMetaType::Bool (default: false) Indicates whether the CFxNANetworkAccessManag...
@ ConnectionEncryptedAttribute
Replies only, type: CFxMetaType::Bool (default: false) Indicates whether the data was obtained throug...
@ MaximumDownloadBufferSizeAttribute
@ RedirectionTargetAttribute
Replies only, type: CFxMetaType::CFxUrl (no default) If present, it indicates that the server is redi...
@ CookieLoadControlAttribute
Requests only, type: CFxMetaType::Int (default: CFxNANetworkRequest::Automatic) Indicates whether to ...
@ HttpStatusCodeAttribute
Replies only, type: CFxMetaType::Int (no default) Indicates the HTTP status code received from the HT...
@ OriginalContentLengthAttribute
Replies only, type CFxMetaType::Int Holds the original content-length attribute before being invalida...
@ FollowRedirectsAttribute
Requests only, type: CFxMetaType::Bool (default: false) Indicates whether the Network Access API shou...
@ CookieSaveControlAttribute
Requests only, type: CFxMetaType::Int (default: CFxNANetworkRequest::Automatic) Indicates whether to ...
@ HTTP2AllowedAttribute
Requests only, type: CFxMetaType::Bool (default: false) Indicates whether the CFxNANetworkAccessManag...
@ SourceIsFromCacheAttribute
Replies only, type: CFxMetaType::Bool (default: false) Indicates whether the data was obtained from c...
@ HttpReasonPhraseAttribute
Replies only, type: CFxMetaType::QByteArray (no default) Indicates the HTTP reason phrase as received...
@ EmitAllUploadProgressSignalsAttribute
Requests only, type: CFxMetaType::Bool (default: false) Indicates whether all upload signals should b...
@ BackgroundRequestAttribute
Type: CFxMetaType::Bool (default: false) Indicates that this is a background transfer,...
@ HttpPipeliningAllowedAttribute
Requests only, type: CFxMetaType::Bool (default: false) Indicates whether the CFxNANetworkAccessManag...
@ SpdyAllowedAttribute
Requests only, type: CFxMetaType::Bool (default: false) Indicates whether the CFxNANetworkAccessManag...
@ HttpPipeliningWasUsedAttribute
Replies only, type: CFxMetaType::Bool Indicates whether the HTTP pipelining was used for receiving th...
@ DownloadBufferAttribute
@ CacheSaveControlAttribute
Requests only, type: CFxMetaType::Bool (default: true) Controls if the data obtained should be saved ...
@ CacheLoadControlAttribute
Requests only, type: CFxMetaType::Int (default: CFxNANetworkRequest::PreferNetwork) Controls how the ...
@ RedirectPolicyAttribute
Requests only, type: CFxMetaType::Int, should be one of the CFxNANetworkRequest::RedirectPolicy value...
@ SynchronousRequestAttribute
@ AuthenticationReuseAttribute
Requests only, type: CFxMetaType::Int (default: CFxNANetworkRequest::Automatic) Indicates whether to ...
void setRequestTimeout(int timeoutMs)
CFxNAVariant header(CFxNANetworkRequest::KnownHeaders header) const
void setHandle(FxNetworkRequestHandle handle)
FxNetworkRequestHandle getHandle() const
int requestTimeout() const
CFxNANetworkRequest(const CFxNAUrl &url=CFxNAUrl())
CFxNAVariant rawHeader(const CFxNAByteArray &headerName) const
GLsizei const GLfloat * value