python-websocketd
Python module for creating a http server which uses WebSockets.
Public Member Functions | Public Attributes | Static Public Attributes | List of all members
websocketd.Httpd Class Reference

HTTP server. More...

Inheritance diagram for websocketd.Httpd:
Inheritance graph
[legend]

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...
 

Detailed Description

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.


The documentation for this class was generated from the following file: