- All Implemented Interfaces:
QtObjectInterface
API for sending replies from an HTTP server
Java wrapper for Qt class QHttpServerResponder
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
Java wrapper for Qt enumQHttpServerResponder::StatusCode
Nested classes/interfaces inherited from class io.qt.QtObject
QtObject.QPrivateConstructor
-
Field Summary
Modifier and TypeFieldDescriptionstatic final QMetaObject
This variable stores the meta-object for the class. -
Method Summary
Modifier and TypeMethodDescriptionfinal QPair<QByteArray,
QByteArray>[] headerList
(QPair<QByteArray, QByteArray> ... pairs) final void
sendResponse
(QHttpServerResponse response) final void
write()
Overloaded function forwrite(io.qt.httpserver.QHttpServerResponder.StatusCode)
withstatus = io.qt.httpserver.QHttpServerResponder.StatusCode.Ok
.final void
write
(QByteArray data, QByteArray mimeType) Overloaded function forwrite(io.qt.core.QByteArray, io.qt.core.QByteArray, io.qt.httpserver.QHttpServerResponder.StatusCode)
withstatus = io.qt.httpserver.QHttpServerResponder.StatusCode.Ok
.final void
write
(QByteArray data, QByteArray mimeType, QHttpServerResponder.StatusCode status) final void
write
(QByteArray data, QPair<QByteArray, QByteArray> ... headers) final void
write
(QByteArray data, QPair<QByteArray, QByteArray> [] headers, QHttpServerResponder.StatusCode status) final void
write
(QByteArray data, String mimeType) final void
write
(QByteArray data, String mimeType, QHttpServerResponder.StatusCode status) final void
write
(QIODevice data, QPair<QByteArray, QByteArray> ... headers) final void
final void
write
(QIODevice data, String mimeType, QHttpServerResponder.StatusCode status) final void
write
(QJsonDocument document) Overloaded function forwrite(io.qt.core.QJsonDocument, io.qt.httpserver.QHttpServerResponder.StatusCode)
withstatus = io.qt.httpserver.QHttpServerResponder.StatusCode.Ok
.final void
write
(QJsonDocument document, QPair<QByteArray, QByteArray> ... headers) final void
write
(QJsonDocument document, QPair<QByteArray, QByteArray> [] headers, QHttpServerResponder.StatusCode status) final void
write
(QJsonDocument document, QHttpServerResponder.StatusCode status) final void
write
(QPair<QByteArray, QByteArray> ... headers) final void
write
(QPair<QByteArray, QByteArray> [] headers, QHttpServerResponder.StatusCode status) final void
write
(QHttpServerResponder.StatusCode status) final void
final void
write
(String data, String mimeType, QHttpServerResponder.StatusCode status) final void
write
(QIODevice data, QByteArray mimeType) Overloaded function forwrite(io.qt.core.QIODevice, io.qt.core.QByteArray, io.qt.httpserver.QHttpServerResponder.StatusCode)
withstatus = io.qt.httpserver.QHttpServerResponder.StatusCode.Ok
.final void
write
(QIODevice data, QByteArray mimeType, QHttpServerResponder.StatusCode status) final void
write
(QIODevice data, QPair<QByteArray, QByteArray> [] headers, QHttpServerResponder.StatusCode status) final void
writeBody
(byte [] body) final void
writeBody
(QByteArray body) final void
final void
writeBody
(ByteBuffer body) final void
writeHeader
(QByteArray key, QByteArray value) final void
writeHeader
(QByteArray key, String value) final void
writeHeader
(String key, QByteArray value) final void
writeHeaders
(QPair<QByteArray, QByteArray> ... headers) final void
Overloaded function forwriteStatusLine(io.qt.httpserver.QHttpServerResponder.StatusCode)
withstatus = io.qt.httpserver.QHttpServerResponder.StatusCode.Ok
.final void
Methods inherited from class io.qt.QtObject
dispose, equals, isDisposed
-
Field Details
-
staticMetaObject
This variable stores the meta-object for the class.
-
-
Method Details
-
sendResponse
-
write
@QtUninvokable public final void write(QPair<QByteArray, QByteArray> [] headers, QHttpServerResponder.StatusCode status) -
write
Overloaded function for
write(io.qt.httpserver.QHttpServerResponder.StatusCode)
withstatus = io.qt.httpserver.QHttpServerResponder.StatusCode.Ok
. -
write
-
write
@QtUninvokable public final void write(QIODevice data, QPair<QByteArray, QByteArray> [] headers, QHttpServerResponder.StatusCode status) -
write
Overloaded function for
write(io.qt.core.QIODevice, io.qt.core.QByteArray, io.qt.httpserver.QHttpServerResponder.StatusCode)
withstatus = io.qt.httpserver.QHttpServerResponder.StatusCode.Ok
. -
write
@QtUninvokable public final void write(QIODevice data, QByteArray mimeType, QHttpServerResponder.StatusCode status) -
write
@QtUninvokable public final void write(QByteArray data, QPair<QByteArray, QByteArray> [] headers, QHttpServerResponder.StatusCode status) -
write
Overloaded function for
write(io.qt.core.QByteArray, io.qt.core.QByteArray, io.qt.httpserver.QHttpServerResponder.StatusCode)
withstatus = io.qt.httpserver.QHttpServerResponder.StatusCode.Ok
. -
write
@QtUninvokable public final void write(QByteArray data, QByteArray mimeType, QHttpServerResponder.StatusCode status) -
write
@QtUninvokable public final void write(QJsonDocument document, QPair<QByteArray, QByteArray> [] headers, QHttpServerResponder.StatusCode status) -
write
Overloaded function for
write(io.qt.core.QJsonDocument, io.qt.httpserver.QHttpServerResponder.StatusCode)
withstatus = io.qt.httpserver.QHttpServerResponder.StatusCode.Ok
. -
write
@QtUninvokable public final void write(QJsonDocument document, QHttpServerResponder.StatusCode status) -
writeBody
-
writeBody
-
writeBody
-
writeHeader
-
writeHeaders
@SafeVarargs @QtUninvokable public final void writeHeaders(QPair<QByteArray, QByteArray> ... headers) -
writeStatusLine
Overloaded function for
writeStatusLine(io.qt.httpserver.QHttpServerResponder.StatusCode)
withstatus = io.qt.httpserver.QHttpServerResponder.StatusCode.Ok
. -
writeStatusLine
-
write
-
write
@QtUninvokable public final void write(String data, String mimeType, QHttpServerResponder.StatusCode status) -
write
-
write
@QtUninvokable public final void write(QIODevice data, String mimeType, QHttpServerResponder.StatusCode status) -
write
-
write
@QtUninvokable public final void write(QByteArray data, String mimeType, QHttpServerResponder.StatusCode status) -
writeBody
-
writeHeader
-
writeHeader
-
headerList
@SafeVarargs @QtUninvokable public final QPair<QByteArray,QByteArray>[] headerList(QPair<QByteArray, QByteArray> ... pairs) -
write
@SafeVarargs @QtUninvokable public final void write(QByteArray data, QPair<QByteArray, QByteArray> ... headers) -
write
@SafeVarargs @QtUninvokable public final void write(QIODevice data, QPair<QByteArray, QByteArray> ... headers) -
write
@SafeVarargs @QtUninvokable public final void write(QJsonDocument document, QPair<QByteArray, QByteArray> ... headers) -
write
-