QHttpServerResponder#
Synopsis#
Functions#
def
sendResponse
(response)def
write
([status=QHttpServerResponder.StatusCode.Ok])def
write
(data, mimeType[, status=QHttpServerResponder.StatusCode.Ok])def
write
(data, mimeType[, status=QHttpServerResponder.StatusCode.Ok])def
write
(document[, status=QHttpServerResponder.StatusCode.Ok])def
writeBody
(body)def
writeBody
(body)def
writeBody
(body, size)def
writeHeader
(key, value)def
writeStatusLine
([status=QHttpServerResponder.StatusCode.Ok])
Note
This documentation may contain snippets that were automatically translated from C++ to Python. We always welcome contributions to the snippet translation. If you see an issue with the translation, you can also let us know by creating a ticket on https:/bugreports.qt.io/projects/PYSIDE
Detailed Description#
- class PySide6.QtHttpServer.QHttpServerResponder#
- PySide6.QtHttpServer.QHttpServerResponder.StatusCode#
- PySide6.QtHttpServer.QHttpServerResponder.sendResponse(response)#
- Parameters:
response –
PySide6.QtHttpServer.QHttpServerResponse
- PySide6.QtHttpServer.QHttpServerResponder.write([status=QHttpServerResponder.StatusCode.Ok])#
- Parameters:
status –
StatusCode
- PySide6.QtHttpServer.QHttpServerResponder.write(data, mimeType[, status=QHttpServerResponder.StatusCode.Ok])
- Parameters:
data –
PySide6.QtCore.QIODevice
mimeType –
PySide6.QtCore.QByteArray
status –
StatusCode
- PySide6.QtHttpServer.QHttpServerResponder.write(data, mimeType[, status=QHttpServerResponder.StatusCode.Ok])
- Parameters:
data –
PySide6.QtCore.QByteArray
mimeType –
PySide6.QtCore.QByteArray
status –
StatusCode
- PySide6.QtHttpServer.QHttpServerResponder.write(document[, status=QHttpServerResponder.StatusCode.Ok])
- Parameters:
document –
PySide6.QtCore.QJsonDocument
status –
StatusCode
- PySide6.QtHttpServer.QHttpServerResponder.writeBody(body)#
- Parameters:
body –
PySide6.QtCore.QByteArray
- PySide6.QtHttpServer.QHttpServerResponder.writeBody(body)
- Parameters:
body – str
- PySide6.QtHttpServer.QHttpServerResponder.writeBody(body, size)
- Parameters:
body – str
size – int
- PySide6.QtHttpServer.QHttpServerResponder.writeHeader(key, value)#
- Parameters:
value –
PySide6.QtCore.QByteArray
- PySide6.QtHttpServer.QHttpServerResponder.writeStatusLine([status=QHttpServerResponder.StatusCode.Ok])#
- Parameters:
status –
StatusCode