class QHttpServerResponder#

Synopsis#

Methods#

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:

responseQHttpServerResponse

write([status=QHttpServerResponder.StatusCode.Ok])#
Parameters:

statusStatusCode

write(data, mimeType[, status=QHttpServerResponder.StatusCode.Ok])
Parameters:
write(data, mimeType[, status=QHttpServerResponder.StatusCode.Ok])
Parameters:
write(document[, status=QHttpServerResponder.StatusCode.Ok])
Parameters:
writeBody(body)#
Parameters:

bodyQByteArray

writeBody(body)
Parameters:

body – str

writeBody(body, size)
Parameters:
  • body – str

  • size – int

writeHeader(key, value)#
Parameters:
writeStatusLine([status=QHttpServerResponder.StatusCode.Ok])#
Parameters:

statusStatusCode