class QHttpServerResponse#

Synopsis#

Methods#

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#

__init__(mimeType, data[, status=QHttpServerResponder.StatusCode.Ok])#
Parameters:
__init__(statusCode)
Parameters:

statusCodeStatusCode

__init__(data[, status=QHttpServerResponder.StatusCode.Ok])
Parameters:
__init__(data[, status=QHttpServerResponder.StatusCode.Ok])
Parameters:
__init__(data[, status=QHttpServerResponder.StatusCode.Ok])
Parameters:
__init__(data[, status=QHttpServerResponder.StatusCode.Ok])
Parameters:
__init__(data[, status=QHttpServerResponder.StatusCode.Ok])
Parameters:
addHeader(name, value)#
Parameters:
clearHeader(name)#
Parameters:

nameQByteArray

clearHeaders()#
data()#
Return type:

QByteArray

static fromFile(fileName)#
Parameters:

fileName – str

Return type:

QHttpServerResponse

hasHeader(name)#
Parameters:

nameQByteArray

Return type:

bool

hasHeader(name, value)
Parameters:
Return type:

bool

headers(name)#
Parameters:

nameQByteArray

Return type:

.list of QByteArray

mimeType()#
Return type:

QByteArray

setHeader(name, value)#
Parameters:
statusCode()#
Return type:

StatusCode