(self, env, start_response)
| 112 | return [body] |
| 113 | |
| 114 | def __call__(self, env, start_response): |
| 115 | func = self.dispatch(env) |
| 116 | |
| 117 | if func: |
| 118 | return func(env, start_response) |
| 119 | |
| 120 | headers = [("Cache-Control", "max-age=5000"), ("Content-Type", "text/plain")] |
| 121 | start_response("200 OK", headers) |
| 122 | return [pformat(env).encode("utf8")] |
| 123 | |
| 124 | |
| 125 | @pytest.fixture(scope="session") |