- class QHttpServerResponse#
Synopsis#
Methods#
def
__init__()
def
addHeader()
def
clearHeader()
def
clearHeaders()
def
data()
def
hasHeader()
def
headers()
def
mimeType()
def
setHeader()
def
statusCode()
Static functions#
def
fromFile()
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:
mimeType –
QByteArray
data –
QByteArray
status –
StatusCode
- __init__(statusCode)
- Parameters:
statusCode –
StatusCode
- __init__(data[, status=QHttpServerResponder.StatusCode.Ok])
- Parameters:
data –
QJsonArray
status –
StatusCode
- __init__(data[, status=QHttpServerResponder.StatusCode.Ok])
- Parameters:
data –
QJsonObject
status –
StatusCode
- __init__(data[, status=QHttpServerResponder.StatusCode.Ok])
- Parameters:
data – str
status –
StatusCode
- __init__(data[, status=QHttpServerResponder.StatusCode.Ok])
- Parameters:
data – str
status –
StatusCode
- __init__(data[, status=QHttpServerResponder.StatusCode.Ok])
- Parameters:
data –
QByteArray
status –
StatusCode
- addHeader(name, value)#
- Parameters:
name –
QByteArray
value –
QByteArray
- clearHeader(name)#
- Parameters:
name –
QByteArray
- clearHeaders()#
- data()#
- Return type:
- static fromFile(fileName)#
- Parameters:
fileName – str
- Return type:
- hasHeader(name)#
- Parameters:
name –
QByteArray
- Return type:
bool
- hasHeader(name, value)
- Parameters:
name –
QByteArray
value –
QByteArray
- Return type:
bool
- headers(name)#
- Parameters:
name –
QByteArray
- Return type:
.list of QByteArray
- mimeType()#
- Return type:
- setHeader(name, value)#
- Parameters:
name –
QByteArray
value –
QByteArray
- statusCode()#
- Return type: