diff options
| author | Jenkins <jenkins@review.openstack.org> | 2013-06-11 18:43:09 +0000 |
|---|---|---|
| committer | Gerrit Code Review <review@openstack.org> | 2013-06-11 18:43:09 +0000 |
| commit | 109e1b525dc96fd2d523dbc41c018ee975030e82 (patch) | |
| tree | c33556b56380515caca0219f49e4f2f69bb3dcb8 /openstack/common/middleware/base.py | |
| parent | 165b98415d3949f8a9dddbdbc1f304fb7d257718 (diff) | |
| parent | 7119e29cb535426c587eaf2cfc2cfcd11a422df0 (diff) | |
| download | oslo-109e1b525dc96fd2d523dbc41c018ee975030e82.tar.gz oslo-109e1b525dc96fd2d523dbc41c018ee975030e82.tar.xz oslo-109e1b525dc96fd2d523dbc41c018ee975030e82.zip | |
Merge "Enable hacking H404 test."
Diffstat (limited to 'openstack/common/middleware/base.py')
| -rw-r--r-- | openstack/common/middleware/base.py | 17 |
1 files changed, 7 insertions, 10 deletions
diff --git a/openstack/common/middleware/base.py b/openstack/common/middleware/base.py index 624a391..7236731 100644 --- a/openstack/common/middleware/base.py +++ b/openstack/common/middleware/base.py @@ -18,18 +18,16 @@ import webob.dec class Middleware(object): - """ - Base WSGI middleware wrapper. These classes require an application to be - initialized that will be called next. By default the middleware will - simply call its wrapped app, or you can override __call__ to customize its - behavior. + """Base WSGI middleware wrapper. + + These classes require an application to be initialized that will be called + next. By default the middleware will simply call its wrapped app, or you + can override __call__ to customize its behavior. """ @classmethod def factory(cls, global_conf, **local_conf): - """ - Factory method for paste.deploy - """ + """Factory method for paste.deploy.""" def filter(app): return cls(app) @@ -40,8 +38,7 @@ class Middleware(object): self.application = application def process_request(self, req): - """ - Called on each request. + """Called on each request. If this returns None, the next application down the stack will be executed. If it returns a response then that response will be returned |
