QHttpServerResponse#

Synopsis#

Functions#

Static functions#

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.QHttpServerResponse(data[, status=QHttpServerResponder.StatusCode.Ok])#

PySide6.QtHttpServer.QHttpServerResponse(mimeType, data[, status=QHttpServerResponder.StatusCode.Ok])

PySide6.QtHttpServer.QHttpServerResponse(statusCode)

PySide6.QtHttpServer.QHttpServerResponse(data[, status=QHttpServerResponder.StatusCode.Ok])

PySide6.QtHttpServer.QHttpServerResponse(data[, status=QHttpServerResponder.StatusCode.Ok])

PySide6.QtHttpServer.QHttpServerResponse(data[, status=QHttpServerResponder.StatusCode.Ok])

PySide6.QtHttpServer.QHttpServerResponse(data[, status=QHttpServerResponder.StatusCode.Ok])

Parameters:
PySide6.QtHttpServer.QHttpServerResponse.addHeader(name, value)#
Parameters:
PySide6.QtHttpServer.QHttpServerResponse.clearHeader(name)#
Parameters:

namePySide6.QtCore.QByteArray

PySide6.QtHttpServer.QHttpServerResponse.clearHeaders()#
PySide6.QtHttpServer.QHttpServerResponse.data()#
Return type:

PySide6.QtCore.QByteArray

static PySide6.QtHttpServer.QHttpServerResponse.fromFile(fileName)#
Parameters:

fileName – str

Return type:

PySide6.QtHttpServer.QHttpServerResponse

PySide6.QtHttpServer.QHttpServerResponse.hasHeader(name)#
Parameters:

namePySide6.QtCore.QByteArray

Return type:

bool

PySide6.QtHttpServer.QHttpServerResponse.hasHeader(name, value)
Parameters:
Return type:

bool

PySide6.QtHttpServer.QHttpServerResponse.headers(name)#
Parameters:

namePySide6.QtCore.QByteArray

Return type:

.list of QByteArray

PySide6.QtHttpServer.QHttpServerResponse.mimeType()#
Return type:

PySide6.QtCore.QByteArray

PySide6.QtHttpServer.QHttpServerResponse.setHeader(name, value)#
Parameters:
PySide6.QtHttpServer.QHttpServerResponse.statusCode()#
Return type:

StatusCode