Package smisk :: Module wsgi
[frames] | no frames]

Module wsgi

This module provides a way to use Smisk as a WSGI backend.

Conforms to PEP 333

Simple example:

>>> from smisk.wsgi import Gateway
>>> def hello_app(env, start_response):
>>>   start_response("200 OK", [])
>>>   return ["Hello, World"]
>>>
>>> Gateway(hello_app).run()

See Also: http://www.python.org/dev/peps/pep-0333/

Authors:
Eric Moritz, Rasmus Andersson
Classes
  Request
WSGI request
  Gateway
This is the Smisk WSGI adapter
Functions
 
is_hop_by_hop(header_name)
Return true if 'header_name' is an HTTP/1.1 "Hop-by-Hop" header