- class QAbstractHttpServer#
-
Inherited by:
QHttpServer
Synopsis#
Methods#
def
__init__()
def
bind()
def
listen()
def
localServers()
def
serverPorts()
def
servers()
def
sslSetup()
Virtual methods#
def
handleRequest()
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#
- bind(server)#
- Parameters:
server –
QLocalServer
- bind([server=None])
- Parameters:
server –
QTcpServer
- abstract handleRequest(request, responder)#
- Parameters:
request –
QHttpServerRequest
responder –
QHttpServerResponder
- Return type:
bool
- listen([address=QHostAddress.Any[, port=0]])#
- Parameters:
address –
QHostAddress
port – int
- Return type:
int
- localServers()#
- Return type:
.list of QLocalServer
- serverPorts()#
- Return type:
.list of quint16
- servers()#
- Return type:
.list of QTcpServer
- sslSetup(certificate, privateKey[, protocol=QSsl.SecureProtocols])#
- Parameters:
certificate –
QSslCertificate
privateKey –
QSslKey
protocol –
SslProtocol
- sslSetup(sslConfiguration)
- Parameters:
sslConfiguration –
QSslConfiguration