gluon :: main :: LazyWSGI :: Class LazyWSGI
[hide private]
[frames] | no frames]

Class LazyWSGI

source code

object --+
         |
        LazyWSGI

Instance Methods [hide private]
 
__init__(self, environ, request, response)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
start_response(self, status='200', headers=[], exec_info=None)
in controller you can use:
source code
 
middleware(self, *middleware_apps)
In you controller use:
source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties [hide private]
  environ

Inherited from object: __class__

Method Details [hide private]

__init__(self, environ, request, response)
(Constructor)

source code 

x.__init__(...) initializes x; see help(type(x)) for signature

Overrides: object.__init__
(inherited documentation)

start_response(self, status='200', headers=[], exec_info=None)

source code 

in controller you can use:

- request.wsgi.environ
- request.wsgi.start_response

to call third party WSGI applications

middleware(self, *middleware_apps)

source code 

In you controller use:

   @request.wsgi.middleware(middleware1, middleware2, ...)

to decorate actions with WSGI middleware. actions must return strings. uses a simulated environment so it may have weird behavior in some cases


Property Details [hide private]

environ

Get Method:
unreachable.environ(self)