QHttpServerResponder#

Inheritance diagram of PySide6.QtHttpServer.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:

responsePySide6.QtHttpServer.QHttpServerResponse

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

statusStatusCode

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

bodyPySide6.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:
PySide6.QtHttpServer.QHttpServerResponder.writeStatusLine([status=QHttpServerResponder.StatusCode.Ok])#
Parameters:

statusStatusCode