- All Implemented Interfaces:
QtObjectInterface
Encapsulates an HTTP response
Java wrapper for Qt class QHttpServerResponse
-
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 void
addHeader
(byte [] name, byte [] value) Overloaded function foraddHeader(io.qt.core.QByteArray, io.qt.core.QByteArray)
.final void
addHeader
(byte [] name, QByteArray value) Overloaded function foraddHeader(io.qt.core.QByteArray, io.qt.core.QByteArray)
.final void
Overloaded function foraddHeader(io.qt.core.QByteArray, io.qt.core.QByteArray)
.final void
addHeader
(QByteArray name, byte [] value) Overloaded function foraddHeader(io.qt.core.QByteArray, io.qt.core.QByteArray)
.final void
addHeader
(QByteArray name, QByteArray value) final void
addHeader
(QByteArray name, String value) Overloaded function foraddHeader(io.qt.core.QByteArray, io.qt.core.QByteArray)
.final void
Overloaded function foraddHeader(io.qt.core.QByteArray, io.qt.core.QByteArray)
.final void
addHeader
(String name, QByteArray value) Overloaded function foraddHeader(io.qt.core.QByteArray, io.qt.core.QByteArray)
.final void
Overloaded function foraddHeader(io.qt.core.QByteArray, io.qt.core.QByteArray)
.final void
addHeaders
(QPair<? extends QByteArray, ? extends QByteArray> ... headers) final void
clearHeader
(byte [] name) Overloaded function forclearHeader(io.qt.core.QByteArray)
.final void
clearHeader
(QByteArray name) final void
clearHeader
(String name) Overloaded function forclearHeader(io.qt.core.QByteArray)
.final void
final QByteArray
data()
static QHttpServerResponse
final boolean
hasHeader
(byte [] name) Overloaded function forhasHeader(io.qt.core.QByteArray)
.final boolean
hasHeader
(byte [] name, byte [] value) Overloaded function forhasHeader(io.qt.core.QByteArray, io.qt.core.QByteArray)
.final boolean
hasHeader
(byte [] name, QByteArray value) Overloaded function forhasHeader(io.qt.core.QByteArray, io.qt.core.QByteArray)
.final boolean
Overloaded function forhasHeader(io.qt.core.QByteArray, io.qt.core.QByteArray)
.final boolean
hasHeader
(QByteArray name) final boolean
hasHeader
(QByteArray name, byte [] value) Overloaded function forhasHeader(io.qt.core.QByteArray, io.qt.core.QByteArray)
.final boolean
hasHeader
(QByteArray name, QByteArray value) final boolean
hasHeader
(QByteArray name, String value) Overloaded function forhasHeader(io.qt.core.QByteArray, io.qt.core.QByteArray)
.final boolean
Overloaded function forhasHeader(io.qt.core.QByteArray)
.final boolean
Overloaded function forhasHeader(io.qt.core.QByteArray, io.qt.core.QByteArray)
.final boolean
hasHeader
(String name, QByteArray value) Overloaded function forhasHeader(io.qt.core.QByteArray, io.qt.core.QByteArray)
.final boolean
Overloaded function forhasHeader(io.qt.core.QByteArray, io.qt.core.QByteArray)
.final QList
<QByteArray> headers
(byte [] name) Overloaded function forheaders(io.qt.core.QByteArray)
.final QList
<QByteArray> headers
(QByteArray name) final QList
<QByteArray> Overloaded function forheaders(io.qt.core.QByteArray)
.final QByteArray
mimeType()
final void
setHeader
(byte [] name, byte [] value) Overloaded function forsetHeader(io.qt.core.QByteArray, io.qt.core.QByteArray)
.final void
setHeader
(byte [] name, QByteArray value) Overloaded function forsetHeader(io.qt.core.QByteArray, io.qt.core.QByteArray)
.final void
setHeader
(QByteArray name, byte [] value) Overloaded function forsetHeader(io.qt.core.QByteArray, io.qt.core.QByteArray)
.final void
setHeader
(QByteArray name, QByteArray value) final void
setHeaders
(QPair<? extends QByteArray, ? extends QByteArray> ... headers) Methods inherited from class io.qt.QtObject
dispose, equals, isDisposed
-
Constructor Details
-
QHttpServerResponse
public QHttpServerResponse(QByteArray mimeType, QByteArray data, QHttpServerResponder.StatusCode status) -
QHttpServerResponse
-
QHttpServerResponse
-
QHttpServerResponse
-
QHttpServerResponse
-
QHttpServerResponse
-
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
-
addHeader
-
addHeaders
@SafeVarargs @QtUninvokable public final void addHeaders(QPair<? extends QByteArray, ? extends QByteArray> ... headers) -
clearHeader
-
clearHeaders
-
data
-
hasHeader
-
hasHeader
-
headers
-
mimeType
-
setHeader
-
setHeaders
@SafeVarargs @QtUninvokable public final void setHeaders(QPair<? extends QByteArray, ? extends QByteArray> ... headers) -
statusCode
-
fromFile
-
addHeader
Overloaded function for
addHeader(io.qt.core.QByteArray, io.qt.core.QByteArray)
. -
addHeader
Overloaded function for
addHeader(io.qt.core.QByteArray, io.qt.core.QByteArray)
. -
addHeader
Overloaded function for
addHeader(io.qt.core.QByteArray, io.qt.core.QByteArray)
. -
addHeader
Overloaded function for
addHeader(io.qt.core.QByteArray, io.qt.core.QByteArray)
. -
addHeader
Overloaded function for
addHeader(io.qt.core.QByteArray, io.qt.core.QByteArray)
. -
addHeader
Overloaded function for
addHeader(io.qt.core.QByteArray, io.qt.core.QByteArray)
. -
addHeader
Overloaded function for
addHeader(io.qt.core.QByteArray, io.qt.core.QByteArray)
. -
addHeader
Overloaded function for
addHeader(io.qt.core.QByteArray, io.qt.core.QByteArray)
. -
clearHeader
Overloaded function for
clearHeader(io.qt.core.QByteArray)
. -
clearHeader
Overloaded function for
clearHeader(io.qt.core.QByteArray)
. -
hasHeader
Overloaded function for
hasHeader(io.qt.core.QByteArray)
. -
hasHeader
Overloaded function for
hasHeader(io.qt.core.QByteArray)
. -
hasHeader
Overloaded function for
hasHeader(io.qt.core.QByteArray, io.qt.core.QByteArray)
. -
hasHeader
Overloaded function for
hasHeader(io.qt.core.QByteArray, io.qt.core.QByteArray)
. -
hasHeader
Overloaded function for
hasHeader(io.qt.core.QByteArray, io.qt.core.QByteArray)
. -
hasHeader
Overloaded function for
hasHeader(io.qt.core.QByteArray, io.qt.core.QByteArray)
. -
hasHeader
Overloaded function for
hasHeader(io.qt.core.QByteArray, io.qt.core.QByteArray)
. -
hasHeader
Overloaded function for
hasHeader(io.qt.core.QByteArray, io.qt.core.QByteArray)
. -
hasHeader
Overloaded function for
hasHeader(io.qt.core.QByteArray, io.qt.core.QByteArray)
. -
hasHeader
Overloaded function for
hasHeader(io.qt.core.QByteArray, io.qt.core.QByteArray)
. -
headers
Overloaded function for
headers(io.qt.core.QByteArray)
. -
headers
Overloaded function for
headers(io.qt.core.QByteArray)
. -
setHeader
Overloaded function for
setHeader(io.qt.core.QByteArray, io.qt.core.QByteArray)
. -
setHeader
Overloaded function for
setHeader(io.qt.core.QByteArray, io.qt.core.QByteArray)
. -
setHeader
Overloaded function for
setHeader(io.qt.core.QByteArray, io.qt.core.QByteArray)
.
-