- All Implemented Interfaces:
QtObjectInterface
,Cloneable
Holds a request to be sent with QNetworkAccessManager
Java wrapper for Qt class QNetworkRequest
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
Java wrapper for Qt enumQNetworkRequest::Attribute
static enum
Java wrapper for Qt enumQNetworkRequest::CacheLoadControl
static enum
Java wrapper for Qt enumQNetworkRequest::KnownHeaders
static enum
Java wrapper for Qt enumQNetworkRequest::LoadControl
static enum
Java wrapper for Qt enumQNetworkRequest::Priority
static enum
Java wrapper for Qt enumQNetworkRequest::RedirectPolicy
static enum
Java wrapper for Qt enumQNetworkRequest::TransferTimeoutConstant
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
static final QMetaObject
This variable stores the meta-object for the class. -
Constructor Summary
ConstructorDescriptionQNetworkRequest
(QUrl url) QNetworkRequest
(QNetworkRequest other) QNetworkRequest
(String url) Overloaded constructor forQNetworkRequest(io.qt.core.QUrl)
. -
Method Summary
Modifier and TypeMethodDescriptionfinal void
assign
(QNetworkRequest other) final Object
Overloaded function forattribute(io.qt.network.QNetworkRequest.Attribute, java.lang.Object)
withdefaultValue = null
.final Object
attribute
(QNetworkRequest.Attribute code, Object defaultValue) clone()
Creates and returns a copy of this object.final long
final boolean
equals
(QNetworkRequest other) boolean
int
hashCode()
Returns the objects's hash code computed byqHash(QNetworkRequest)
.final boolean
hasRawHeader
(String headerName) final Object
header
(QNetworkRequest.KnownHeaders header) final QHttp1Configuration
final QHttp2Configuration
final int
final QObject
final String
final QNetworkRequest.Priority
priority()
final QByteArray
final QList<QByteArray>
final void
setAttribute
(QNetworkRequest.Attribute code, Object value) final void
setDecompressedSafetyCheckThreshold
(long threshold) final void
setHeader
(QNetworkRequest.KnownHeaders header, Object value) final void
setHttp1Configuration
(QHttp1Configuration configuration) final void
setHttp2Configuration
(QHttp2Configuration configuration) final void
setMaximumRedirectsAllowed
(int maximumRedirectsAllowed) final void
setOriginatingObject
(QObject object) final void
setPeerVerifyName
(String peerName) final void
setPriority
(QNetworkRequest.Priority priority) final void
setRawHeader
(byte [] headerName, byte [] value) Overloaded function forsetRawHeader(io.qt.core.QByteArray, io.qt.core.QByteArray)
.final void
setRawHeader
(byte [] headerName, QByteArray value) Overloaded function forsetRawHeader(io.qt.core.QByteArray, io.qt.core.QByteArray)
.final void
setRawHeader
(QByteArray headerName, byte [] value) Overloaded function forsetRawHeader(io.qt.core.QByteArray, io.qt.core.QByteArray)
.final void
setRawHeader
(QByteArray headerName, QByteArray value) final void
setSslConfiguration
(QSslConfiguration configuration) final void
Overloaded function forsetTransferTimeout(java.time.temporal.TemporalAmount)
withduration = java.time.Duration.ofMillis(io.qt.network.QNetworkRequest.TransferTimeoutConstant.DefaultTransferTimeoutConstant.value())
.final void
setTransferTimeout
(int timeout) final void
setTransferTimeout
(TemporalAmount duration) final void
final void
Overloaded function forsetUrl(io.qt.core.QUrl)
.final QSslConfiguration
final void
swap
(QNetworkRequest other) final int
final Duration
final QUrl
url()
Methods inherited from class io.qt.QtObject
dispose, isDisposed
-
Field Details
-
staticMetaObject
This variable stores the meta-object for the class. -
DefaultTransferTimeout
public static final int DefaultTransferTimeout
-
-
Constructor Details
-
QNetworkRequest
public QNetworkRequest() -
QNetworkRequest
- Parameters:
other
-
-
QNetworkRequest
- Parameters:
url
-
-
QNetworkRequest
Overloaded constructor for
QNetworkRequest(io.qt.core.QUrl)
.
-
-
Method Details
-
attribute
- Parameters:
code
-defaultValue
-- Returns:
-
decompressedSafetyCheckThreshold
- Returns:
- Since:
- This function was introduced in Qt 6.2.
-
hasRawHeader
- Parameters:
headerName
-- Returns:
-
header
- Parameters:
header
-- Returns:
-
http1Configuration
- Returns:
- Since:
- This function was introduced in Qt 6.5.
-
http2Configuration
- Returns:
-
maximumRedirectsAllowed
- Returns:
-
assign
- Parameters:
other
-
-
equals
- Parameters:
other
-- Returns:
-
originatingObject
- Returns:
-
peerVerifyName
- Returns:
-
priority
- Returns:
-
rawHeader
- Parameters:
headerName
-- Returns:
-
rawHeaderList
- Returns:
-
setAttribute
- Parameters:
code
-value
-
-
setDecompressedSafetyCheckThreshold
- Parameters:
threshold
-- Since:
- This function was introduced in Qt 6.2.
-
setHeader
- Parameters:
header
-value
-
-
setHttp1Configuration
- Parameters:
configuration
-- Since:
- This function was introduced in Qt 6.5.
-
setHttp2Configuration
- Parameters:
configuration
-
-
setMaximumRedirectsAllowed
- Parameters:
maximumRedirectsAllowed
-
-
setOriginatingObject
- Parameters:
object
-
-
setPeerVerifyName
- Parameters:
peerName
-
-
setPriority
- Parameters:
priority
-
-
setRawHeader
- Parameters:
headerName
-value
-
-
setSslConfiguration
- Parameters:
configuration
-
-
setTransferTimeout
- Parameters:
timeout
-
-
setTransferTimeout
- Parameters:
duration
-- Since:
- This function was introduced in Qt 6.7.
-
setUrl
- Parameters:
url
-
-
sslConfiguration
- Returns:
-
swap
- Parameters:
other
-
-
transferTimeout
- Returns:
-
transferTimeoutAsDuration
- Returns:
- Since:
- This function was introduced in Qt 6.7.
-
url
- Returns:
-
equals
-
hashCode
Returns the objects's hash code computed byqHash(QNetworkRequest)
. -
clone
Creates and returns a copy of this object.
-
attribute
Overloaded function for
attribute(io.qt.network.QNetworkRequest.Attribute, java.lang.Object)
withdefaultValue = null
. -
setRawHeader
Overloaded function for
setRawHeader(io.qt.core.QByteArray, io.qt.core.QByteArray)
. -
setRawHeader
Overloaded function for
setRawHeader(io.qt.core.QByteArray, io.qt.core.QByteArray)
. -
setRawHeader
Overloaded function for
setRawHeader(io.qt.core.QByteArray, io.qt.core.QByteArray)
. -
setTransferTimeout
Overloaded function for
setTransferTimeout(java.time.temporal.TemporalAmount)
withduration = java.time.Duration.ofMillis(io.qt.network.QNetworkRequest.TransferTimeoutConstant.DefaultTransferTimeoutConstant.value())
. -
setUrl
Overloaded function for
setUrl(io.qt.core.QUrl)
.
-