- All Implemented Interfaces:
QtObjectInterface
Encapsulates an HTTP response
Java wrapper for Qt class QHttpServerResponse
- Since:
- This class was introduced in Qt 6.4.
-
Constructor Summary
ConstructorDescriptionQHttpServerResponse
(byte [] data) Overloaded constructor forQHttpServerResponse(byte[], io.qt.httpserver.QHttpServerResponder.StatusCode)
withstatus = io.qt.httpserver.QHttpServerResponder.StatusCode.Ok
.QHttpServerResponse
(byte [] mimeType, byte [] data) Overloaded constructor forQHttpServerResponse(byte[], byte[], io.qt.httpserver.QHttpServerResponder.StatusCode)
withstatus = io.qt.httpserver.QHttpServerResponder.StatusCode.Ok
.QHttpServerResponse
(byte [] mimeType, byte [] data, QHttpServerResponder.StatusCode status) QHttpServerResponse
(byte [] mimeType, QByteArray data) Overloaded constructor forQHttpServerResponse(byte[], io.qt.core.QByteArray, io.qt.httpserver.QHttpServerResponder.StatusCode)
withstatus = io.qt.httpserver.QHttpServerResponder.StatusCode.Ok
.QHttpServerResponse
(byte [] mimeType, QByteArray data, QHttpServerResponder.StatusCode status) QHttpServerResponse
(byte [] data, QHttpServerResponder.StatusCode status) Overloaded constructor forQHttpServerResponse(io.qt.core.QByteArray, io.qt.httpserver.QHttpServerResponder.StatusCode)
.QHttpServerResponse
(byte [] mimeType, String data) Overloaded constructor forQHttpServerResponse(byte[], java.lang.String, io.qt.httpserver.QHttpServerResponder.StatusCode)
withstatus = io.qt.httpserver.QHttpServerResponder.StatusCode.Ok
.QHttpServerResponse
(byte [] mimeType, String data, QHttpServerResponder.StatusCode status) Overloaded constructor forQHttpServerResponse(io.qt.core.QByteArray, io.qt.httpserver.QHttpServerResponder.StatusCode)
withstatus = io.qt.httpserver.QHttpServerResponder.StatusCode.Ok
.QHttpServerResponse
(QByteArray mimeType, byte [] data) Overloaded constructor forQHttpServerResponse(io.qt.core.QByteArray, byte[], io.qt.httpserver.QHttpServerResponder.StatusCode)
withstatus = io.qt.httpserver.QHttpServerResponder.StatusCode.Ok
.QHttpServerResponse
(QByteArray mimeType, byte [] data, QHttpServerResponder.StatusCode status) QHttpServerResponse
(QByteArray mimeType, QByteArray data) Overloaded constructor forQHttpServerResponse(io.qt.core.QByteArray, io.qt.core.QByteArray, io.qt.httpserver.QHttpServerResponder.StatusCode)
withstatus = io.qt.httpserver.QHttpServerResponder.StatusCode.Ok
.QHttpServerResponse
(QByteArray mimeType, QByteArray data, QHttpServerResponder.StatusCode status) QHttpServerResponse
(QByteArray data, QHttpServerResponder.StatusCode status) QHttpServerResponse
(QByteArray mimeType, String data) Overloaded constructor forQHttpServerResponse(io.qt.core.QByteArray, java.lang.String, io.qt.httpserver.QHttpServerResponder.StatusCode)
withstatus = io.qt.httpserver.QHttpServerResponder.StatusCode.Ok
.QHttpServerResponse
(QByteArray mimeType, String data, QHttpServerResponder.StatusCode status) Overloaded constructor forQHttpServerResponse(io.qt.core.QJsonArray, io.qt.httpserver.QHttpServerResponder.StatusCode)
withstatus = io.qt.httpserver.QHttpServerResponder.StatusCode.Ok
.QHttpServerResponse
(QJsonArray data, QHttpServerResponder.StatusCode status) Overloaded constructor forQHttpServerResponse(io.qt.core.QJsonObject, io.qt.httpserver.QHttpServerResponder.StatusCode)
withstatus = io.qt.httpserver.QHttpServerResponder.StatusCode.Ok
.QHttpServerResponse
(QJsonObject data, QHttpServerResponder.StatusCode status) QHttpServerResponse
(QHttpServerResponder.StatusCode statusCode) QHttpServerResponse
(String data) Overloaded constructor forQHttpServerResponse(java.lang.String, io.qt.httpserver.QHttpServerResponder.StatusCode)
withstatus = io.qt.httpserver.QHttpServerResponder.StatusCode.Ok
.QHttpServerResponse
(String mimeType, byte [] data) Overloaded constructor forQHttpServerResponse(java.lang.String, byte[], io.qt.httpserver.QHttpServerResponder.StatusCode)
withstatus = io.qt.httpserver.QHttpServerResponder.StatusCode.Ok
.QHttpServerResponse
(String mimeType, byte [] data, QHttpServerResponder.StatusCode status) QHttpServerResponse
(String mimeType, QByteArray data) Overloaded constructor forQHttpServerResponse(java.lang.String, io.qt.core.QByteArray, io.qt.httpserver.QHttpServerResponder.StatusCode)
withstatus = io.qt.httpserver.QHttpServerResponder.StatusCode.Ok
.QHttpServerResponse
(String mimeType, QByteArray data, QHttpServerResponder.StatusCode status) QHttpServerResponse
(String data, QHttpServerResponder.StatusCode status) QHttpServerResponse
(String mimeType, String data) Overloaded constructor forQHttpServerResponse(java.lang.String, java.lang.String, io.qt.httpserver.QHttpServerResponder.StatusCode)
withstatus = io.qt.httpserver.QHttpServerResponder.StatusCode.Ok
.QHttpServerResponse
(String mimeType, String data, QHttpServerResponder.StatusCode status) -
Method Summary
Modifier and TypeMethodDescriptionfinal QByteArray
data()
static QHttpServerResponse
final QHttpHeaders
headers()
final QByteArray
mimeType()
final void
setHeaders
(QHttpHeaders newHeaders) final void
swap
(QHttpServerResponse other) Methods inherited from class io.qt.QtObject
dispose, equals, isDisposed
-
Constructor Details
-
QHttpServerResponse
public QHttpServerResponse(QByteArray mimeType, QByteArray data, QHttpServerResponder.StatusCode status) - Parameters:
mimeType
-data
-status
-
-
QHttpServerResponse
- Parameters:
data
-status
-
-
QHttpServerResponse
- Parameters:
statusCode
-
-
QHttpServerResponse
- Parameters:
data
-status
-
-
QHttpServerResponse
- Parameters:
data
-status
-
-
QHttpServerResponse
- Parameters:
data
-status
-
-
QHttpServerResponse
Overloaded constructor for
QHttpServerResponse(io.qt.core.QByteArray, io.qt.core.QByteArray, io.qt.httpserver.QHttpServerResponder.StatusCode)
withstatus = io.qt.httpserver.QHttpServerResponder.StatusCode.Ok
. -
QHttpServerResponse
Overloaded constructor for
QHttpServerResponse(byte[], io.qt.core.QByteArray, io.qt.httpserver.QHttpServerResponder.StatusCode)
withstatus = io.qt.httpserver.QHttpServerResponder.StatusCode.Ok
. -
QHttpServerResponse
public QHttpServerResponse(byte [] mimeType, QByteArray data, QHttpServerResponder.StatusCode status) -
QHttpServerResponse
Overloaded constructor for
QHttpServerResponse(java.lang.String, io.qt.core.QByteArray, io.qt.httpserver.QHttpServerResponder.StatusCode)
withstatus = io.qt.httpserver.QHttpServerResponder.StatusCode.Ok
. -
QHttpServerResponse
public QHttpServerResponse(String mimeType, QByteArray data, QHttpServerResponder.StatusCode status) -
QHttpServerResponse
Overloaded constructor for
QHttpServerResponse(io.qt.core.QByteArray, byte[], io.qt.httpserver.QHttpServerResponder.StatusCode)
withstatus = io.qt.httpserver.QHttpServerResponder.StatusCode.Ok
. -
QHttpServerResponse
public QHttpServerResponse(QByteArray mimeType, byte [] data, QHttpServerResponder.StatusCode status) -
QHttpServerResponse
public QHttpServerResponse(byte [] mimeType, byte [] data) Overloaded constructor for
QHttpServerResponse(byte[], byte[], io.qt.httpserver.QHttpServerResponder.StatusCode)
withstatus = io.qt.httpserver.QHttpServerResponder.StatusCode.Ok
. -
QHttpServerResponse
-
QHttpServerResponse
Overloaded constructor for
QHttpServerResponse(java.lang.String, byte[], io.qt.httpserver.QHttpServerResponder.StatusCode)
withstatus = io.qt.httpserver.QHttpServerResponder.StatusCode.Ok
. -
QHttpServerResponse
-
QHttpServerResponse
Overloaded constructor for
QHttpServerResponse(io.qt.core.QByteArray, java.lang.String, io.qt.httpserver.QHttpServerResponder.StatusCode)
withstatus = io.qt.httpserver.QHttpServerResponder.StatusCode.Ok
. -
QHttpServerResponse
public QHttpServerResponse(QByteArray mimeType, String data, QHttpServerResponder.StatusCode status) -
QHttpServerResponse
Overloaded constructor for
QHttpServerResponse(byte[], java.lang.String, io.qt.httpserver.QHttpServerResponder.StatusCode)
withstatus = io.qt.httpserver.QHttpServerResponder.StatusCode.Ok
. -
QHttpServerResponse
-
QHttpServerResponse
Overloaded constructor for
QHttpServerResponse(java.lang.String, java.lang.String, io.qt.httpserver.QHttpServerResponder.StatusCode)
withstatus = io.qt.httpserver.QHttpServerResponder.StatusCode.Ok
. -
QHttpServerResponse
-
QHttpServerResponse
Overloaded constructor for
QHttpServerResponse(io.qt.core.QByteArray, io.qt.httpserver.QHttpServerResponder.StatusCode)
withstatus = io.qt.httpserver.QHttpServerResponder.StatusCode.Ok
. -
QHttpServerResponse
public QHttpServerResponse(byte [] data) Overloaded constructor for
QHttpServerResponse(byte[], io.qt.httpserver.QHttpServerResponder.StatusCode)
withstatus = io.qt.httpserver.QHttpServerResponder.StatusCode.Ok
. -
QHttpServerResponse
Overloaded constructor for
QHttpServerResponse(io.qt.core.QByteArray, io.qt.httpserver.QHttpServerResponder.StatusCode)
. -
QHttpServerResponse
Overloaded constructor for
QHttpServerResponse(io.qt.core.QJsonArray, io.qt.httpserver.QHttpServerResponder.StatusCode)
withstatus = io.qt.httpserver.QHttpServerResponder.StatusCode.Ok
. -
QHttpServerResponse
Overloaded constructor for
QHttpServerResponse(io.qt.core.QJsonObject, io.qt.httpserver.QHttpServerResponder.StatusCode)
withstatus = io.qt.httpserver.QHttpServerResponder.StatusCode.Ok
. -
QHttpServerResponse
Overloaded constructor for
QHttpServerResponse(java.lang.String, io.qt.httpserver.QHttpServerResponder.StatusCode)
withstatus = io.qt.httpserver.QHttpServerResponder.StatusCode.Ok
.
-
-
Method Details
-
data
- Returns:
-
headers
- Returns:
- Since:
- This function was introduced in Qt 6.8.
-
mimeType
- Returns:
-
setHeaders
- Parameters:
newHeaders
-- Since:
- This function was introduced in Qt 6.8.
-
statusCode
- Returns:
-
swap
- Parameters:
other
-
-
fromFile
- Parameters:
fileName
-- Returns:
-