Package wtf :: Package app :: Package services :: Module static :: Class ResponseFactory
[hide private]
[frames] | no frames]

Class ResponseFactory

source code

object --+
         |
        ResponseFactory

Response hint factory collection
Instance Methods [hide private]
 
__init__(self, svc, x_sendfile)
Initialization
source code
dict
update_env(self, env)
Update request environment
source code
callable
_sendfile_factory(self, response, svc, x_sendfile)
Response factory for sendfile
source code

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

Instance Variables [hide private]
dict _env
ENV update dict
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, svc, x_sendfile)
(Constructor)

source code 
Initialization
Parameters:
  • svc (StaticService) - StaticService instance
  • x_sendfile (str) - X-Sendfile header name or None
Overrides: object.__init__

update_env(self, env)

source code 
Update request environment
Parameters:
  • env (dict) - The environment to update
Returns: dict
The env dict again (MAY be a copy)

_sendfile_factory(self, response, svc, x_sendfile)

source code 
Response factory for sendfile
Parameters:
Returns: callable
The sendfile callable