QAbstractHttpServer#
Inherited by: QHttpServer
Synopsis#
Functions#
Virtual functions#
- def - handleRequest(request, responder)
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.QAbstractHttpServer([parent=None])#
- Parameters:
- parent – - PySide6.QtCore.QObject
 
- PySide6.QtHttpServer.QAbstractHttpServer.bind([server=None])#
- Parameters:
- server – - PySide6.QtNetwork.QTcpServer
 
- abstract PySide6.QtHttpServer.QAbstractHttpServer.handleRequest(request, responder)#
- Parameters:
- request – - PySide6.QtHttpServer.QHttpServerRequest
- responder – - PySide6.QtHttpServer.QHttpServerResponder
 
- Return type:
- bool 
 
- PySide6.QtHttpServer.QAbstractHttpServer.listen([address=QHostAddress.Any[, port=0]])#
- Parameters:
- address – - PySide6.QtNetwork.QHostAddress
- port – - quint16
 
- Return type:
- quint16
 
- PySide6.QtHttpServer.QAbstractHttpServer.serverPorts()#
- Return type:
 
- PySide6.QtHttpServer.QAbstractHttpServer.servers()#
- Return type:
 
- PySide6.QtHttpServer.QAbstractHttpServer.sslSetup(certificate, privateKey[, protocol=QSsl.SecureProtocols])#
- Parameters:
- certificate – - PySide6.QtNetwork.QSslCertificate
- privateKey – - PySide6.QtNetwork.QSslKey
- protocol – - SslProtocol
 
 
- PySide6.QtHttpServer.QAbstractHttpServer.sslSetup(sslConfiguration)
- Parameters:
- sslConfiguration – - PySide6.QtNetwork.QSslConfiguration