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

◆ post()

def websocketd.Httpd.post (   self,
  connection 
)

Handle POST request.

This function responds with an error by default. It must be overridden to handle POST requests.

Parameters
connectionSame as for page(), plus connection.post, which is a 2-tuple. The first element is a dict of name:['value', ...] for fields without a file. The second element is a dict of name:[(local_filename, remote_filename), ...] for fields with a file. When done, the local files are unlinked; remove the items from the dict to prevent this.
Returns
True to keep connection open after this request, False to close it.

Definition at line 1293 of file websocketd.py.

Here is the call graph for this function: