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

◆ handle_ext()

def websocketd.Httpd.handle_ext (   self,
  ext,
  mime 
)

Add file extension to handle successfully.

Files with this extension in httpdirs are served to callers with a 200 Ok code and the given mime type. This is a convenience function for adding the item to exts.

Parameters
extThe extension to serve.
mimeThe mime type to use.
Returns
None.

Definition at line 1136 of file websocketd.py.

Here is the call graph for this function: