QHttpServerResponse#
Synopsis#
Functions#
def
addHeader
(name, value)def
clearHeader
(name)def
clearHeaders
()def
data
()def
hasHeader
(name)def
hasHeader
(name, value)def
headers
(name)def
mimeType
()def
setHeader
(name, value)def
statusCode
()
Static functions#
def
fromFile
(fileName)
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:
data –
PySide6.QtCore.QByteArray
statusCode –
StatusCode
mimeType –
PySide6.QtCore.QByteArray
status –
StatusCode
- PySide6.QtHttpServer.QHttpServerResponse.addHeader(name, value)#
- Parameters:
name –
PySide6.QtCore.QByteArray
value –
PySide6.QtCore.QByteArray
- PySide6.QtHttpServer.QHttpServerResponse.clearHeader(name)#
- Parameters:
name –
PySide6.QtCore.QByteArray
- PySide6.QtHttpServer.QHttpServerResponse.clearHeaders()#
- PySide6.QtHttpServer.QHttpServerResponse.data()#
- Return type:
- static PySide6.QtHttpServer.QHttpServerResponse.fromFile(fileName)#
- Parameters:
fileName – str
- Return type:
- PySide6.QtHttpServer.QHttpServerResponse.hasHeader(name)#
- Parameters:
name –
PySide6.QtCore.QByteArray
- Return type:
bool
- PySide6.QtHttpServer.QHttpServerResponse.hasHeader(name, value)
- Parameters:
name –
PySide6.QtCore.QByteArray
value –
PySide6.QtCore.QByteArray
- Return type:
bool
- PySide6.QtHttpServer.QHttpServerResponse.headers(name)#
- Parameters:
name –
PySide6.QtCore.QByteArray
- Return type:
.list of QByteArray
- PySide6.QtHttpServer.QHttpServerResponse.mimeType()#
- Return type:
- PySide6.QtHttpServer.QHttpServerResponse.setHeader(name, value)#
- Parameters:
name –
PySide6.QtCore.QByteArray
value –
PySide6.QtCore.QByteArray
- PySide6.QtHttpServer.QHttpServerResponse.statusCode()#
- Return type: