- All Implemented Interfaces:
QtObjectInterface
,Cloneable
Class for holding HTTP headers
Java wrapper for Qt class QHttpHeaders
- Since:
- This class was introduced in Qt 6.7.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
Java wrapper for Qt enumQHttpHeaders::WellKnownHeader
-
Field Summary
Modifier and TypeFieldDescriptionstatic final QMetaObject
This variable stores the meta-object for the class. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
append
(QHttpHeaders.WellKnownHeader name, String value) final boolean
final void
assign
(QHttpHeaders other) final void
clear()
clone()
Creates and returns a copy of this object.final QByteArray
final QByteArray
combinedValue
(String name) final boolean
final boolean
final boolean
equals
(QHttpHeaders v2) Seeoperator==(QHttpHeaders,
QHttpHeaders) boolean
Seeoperator==(QHttpHeaders,
QHttpHeaders) static QHttpHeaders
fromListOfPairs
(Collection<? extends QPair<QByteArray, QByteArray>> headers) static QHttpHeaders
fromMultiHash
(Map<? extends QByteArray, ? extends List<? extends QByteArray>> headers) static QHttpHeaders
fromMultiMap
(Map<? extends QByteArray, ? extends List<? extends QByteArray>> headers) int
hashCode()
Returns the objects's hash code computed byqHash(QHttpHeaders)
.final boolean
insert
(long i, QHttpHeaders.WellKnownHeader name, String value) final boolean
final boolean
isEmpty()
final String
nameAt
(long i) final void
final void
final void
removeAt
(long i) final boolean
replace
(long i, QHttpHeaders.WellKnownHeader name, String newValue) final boolean
final boolean
replaceOrAppend
(QHttpHeaders.WellKnownHeader name, String newValue) final boolean
replaceOrAppend
(String name, String newValue) final void
reserve
(long size) final long
size()
final void
swap
(QHttpHeaders other) final QList<QPair<QByteArray,
QByteArray>> final QMultiHash<QByteArray,
QByteArray> final QMultiMap<QByteArray,
QByteArray> toString()
Seeoperator<<(QDebug,
QHttpHeaders) final QByteArrayView
Overloaded function forvalue(io.qt.network.QHttpHeaders.WellKnownHeader, io.qt.core.QByteArrayView)
withdefaultValue = new io.qt.core.QByteArrayView()
.final QByteArrayView
value
(QHttpHeaders.WellKnownHeader name, byte [] defaultValue) Overloaded function forvalue(io.qt.network.QHttpHeaders.WellKnownHeader, io.qt.core.QByteArrayView)
.final QByteArrayView
value
(QHttpHeaders.WellKnownHeader name, QByteArray defaultValue) Overloaded function forvalue(io.qt.network.QHttpHeaders.WellKnownHeader, io.qt.core.QByteArrayView)
.final QByteArrayView
value
(QHttpHeaders.WellKnownHeader name, QByteArrayView defaultValue) final QByteArrayView
value
(QHttpHeaders.WellKnownHeader name, ByteBuffer defaultValue) Overloaded function forvalue(io.qt.network.QHttpHeaders.WellKnownHeader, io.qt.core.QByteArrayView)
.final QByteArrayView
Overloaded function forvalue(java.lang.String, io.qt.core.QByteArrayView)
withdefaultValue = new io.qt.core.QByteArrayView()
.final QByteArrayView
Overloaded function forvalue(java.lang.String, io.qt.core.QByteArrayView)
.final QByteArrayView
value
(String name, QByteArray defaultValue) Overloaded function forvalue(java.lang.String, io.qt.core.QByteArrayView)
.final QByteArrayView
value
(String name, QByteArrayView defaultValue) final QByteArrayView
value
(String name, ByteBuffer defaultValue) Overloaded function forvalue(java.lang.String, io.qt.core.QByteArrayView)
.final QByteArrayView
valueAt
(long i) final QList<QByteArray>
final QList<QByteArray>
static QByteArrayView
Methods inherited from class io.qt.QtObject
dispose, isDisposed
-
Field Details
-
staticMetaObject
This variable stores the meta-object for the class.
-
-
Constructor Details
-
QHttpHeaders
public QHttpHeaders() -
QHttpHeaders
- Parameters:
other
-
-
-
Method Details
-
append
- Parameters:
name
-value
-- Returns:
-
append
- Parameters:
name
-value
-- Returns:
-
clear
-
combinedValue
- Parameters:
name
-- Returns:
-
combinedValue
- Parameters:
name
-- Returns:
-
contains
- Parameters:
name
-- Returns:
-
contains
- Parameters:
name
-- Returns:
-
insert
- Parameters:
i
-name
-value
-- Returns:
-
insert
- Parameters:
i
-name
-value
-- Returns:
-
isEmpty
- Returns:
-
nameAt
- Parameters:
i
-- Returns:
-
assign
- Parameters:
other
-
-
equals
See
operator==(QHttpHeaders,
QHttpHeaders) - Parameters:
v2
-- Returns:
-
removeAll
- Parameters:
name
-
-
removeAll
- Parameters:
name
-
-
removeAt
- Parameters:
i
-
-
replace
- Parameters:
i
-name
-newValue
-- Returns:
-
replace
@QtUninvokable public final boolean replace(long i, QHttpHeaders.WellKnownHeader name, String newValue) - Parameters:
i
-name
-newValue
-- Returns:
-
replaceOrAppend
- Parameters:
name
-newValue
-- Returns:
-
replaceOrAppend
@QtUninvokable public final boolean replaceOrAppend(QHttpHeaders.WellKnownHeader name, String newValue) - Parameters:
name
-newValue
-- Returns:
- Since:
- This function was introduced in Qt 6.8.
-
reserve
- Parameters:
size
-
-
size
- Returns:
-
swap
- Parameters:
other
-
-
toListOfPairs
- Returns:
-
toMultiHash
- Returns:
-
toMultiMap
- Returns:
-
value
- Parameters:
name
-defaultValue
-- Returns:
-
value
@QtUninvokable public final QByteArrayView value(QHttpHeaders.WellKnownHeader name, QByteArrayView defaultValue) - Parameters:
name
-defaultValue
-- Returns:
-
valueAt
- Parameters:
i
-- Returns:
-
values
- Parameters:
name
-- Returns:
-
values
- Parameters:
name
-- Returns:
-
fromListOfPairs
public static QHttpHeaders fromListOfPairs(Collection<? extends QPair<QByteArray, QByteArray>> headers) - Parameters:
headers
-- Returns:
-
fromMultiHash
public static QHttpHeaders fromMultiHash(Map<? extends QByteArray, ? extends List<? extends QByteArray>> headers) - Parameters:
headers
-- Returns:
-
fromMultiMap
public static QHttpHeaders fromMultiMap(Map<? extends QByteArray, ? extends List<? extends QByteArray>> headers) - Parameters:
headers
-- Returns:
-
wellKnownHeaderName
- Parameters:
name
-- Returns:
-
equals
See
operator==(QHttpHeaders,
QHttpHeaders) -
hashCode
Returns the objects's hash code computed byqHash(QHttpHeaders)
. -
toString
See
operator<<(QDebug,
QHttpHeaders) -
clone
Creates and returns a copy of this object.
-
value
Overloaded function for
value(java.lang.String, io.qt.core.QByteArrayView)
withdefaultValue = new io.qt.core.QByteArrayView()
. -
value
Overloaded function for
value(java.lang.String, io.qt.core.QByteArrayView)
. -
value
Overloaded function for
value(java.lang.String, io.qt.core.QByteArrayView)
. -
value
Overloaded function for
value(java.lang.String, io.qt.core.QByteArrayView)
. -
value
Overloaded function for
value(io.qt.network.QHttpHeaders.WellKnownHeader, io.qt.core.QByteArrayView)
withdefaultValue = new io.qt.core.QByteArrayView()
. -
value
@QtUninvokable public final QByteArrayView value(QHttpHeaders.WellKnownHeader name, QByteArray defaultValue) Overloaded function for
value(io.qt.network.QHttpHeaders.WellKnownHeader, io.qt.core.QByteArrayView)
. -
value
@QtUninvokable public final QByteArrayView value(QHttpHeaders.WellKnownHeader name, ByteBuffer defaultValue) Overloaded function for
value(io.qt.network.QHttpHeaders.WellKnownHeader, io.qt.core.QByteArrayView)
. -
value
@QtUninvokable public final QByteArrayView value(QHttpHeaders.WellKnownHeader name, byte [] defaultValue) Overloaded function for
value(io.qt.network.QHttpHeaders.WellKnownHeader, io.qt.core.QByteArrayView)
.
-