- class QHttpServerResponder#
Synopsis#
Methods#
def
sendResponse()
def
write()
def
writeBody()
def
writeHeader()
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 StatusCode#
- sendResponse(response)#
- Parameters:
response –
QHttpServerResponse
- write([status=QHttpServerResponder.StatusCode.Ok])#
- Parameters:
status –
StatusCode
- write(data, mimeType[, status=QHttpServerResponder.StatusCode.Ok])
- Parameters:
data –
QIODevice
mimeType –
QByteArray
status –
StatusCode
- write(data, mimeType[, status=QHttpServerResponder.StatusCode.Ok])
- Parameters:
data –
QByteArray
mimeType –
QByteArray
status –
StatusCode
- write(document[, status=QHttpServerResponder.StatusCode.Ok])
- Parameters:
document –
QJsonDocument
status –
StatusCode
- writeBody(body)#
- Parameters:
body –
QByteArray
- writeBody(body)
- Parameters:
body – str
- writeBody(body, size)
- Parameters:
body – str
size – int
- writeHeader(key, value)#
- Parameters:
key –
QByteArray
value –
QByteArray
- writeStatusLine([status=QHttpServerResponder.StatusCode.Ok])#
- Parameters:
status –
StatusCode