|
python-websocketd
Python module for creating a http server which uses WebSockets.
|
HTTP server. More...

Public Member Functions | |
| def | handle_ext (self, ext, mime) |
| Add file extension to handle successfully. More... | |
| def | authenticate (self, connection) |
| Handle user authentication. More... | |
| def | reply (self, connection, code, message=None, content_type=None, headers=None, close=False) |
| Reply to a request for a document. More... | |
| def | page (self, connection, path=None) |
| Serve a non-websocket page. More... | |
| def | post (self, connection) |
| Handle POST request. More... | |
Public Attributes | |
| recv | |
| Communication object for new websockets. More... | |
| httpdirs | |
| Sequence of directories that that are searched to serve. More... | |
| exts | |
| Extensions which are handled from httpdirs. More... | |
| websockets | |
| Currently connected websocket connections. More... | |
| server | |
| network.Server object. More... | |
Static Public Attributes | |
| auth_message = None | |
| Authentication message. More... | |
HTTP server.
This object implements an HTTP server. It supports GET and POST, and of course websockets.
Definition at line 1062 of file websocketd.py.