(output: typing.Iterable[bytes])
| 15 | |
| 16 | |
| 17 | def application_factory(output: typing.Iterable[bytes]) -> WSGIApplication: |
| 18 | def application(environ, start_response): |
| 19 | status = "200 OK" |
| 20 | |
| 21 | response_headers = [ |
| 22 | ("Content-type", "text/plain"), |
| 23 | ] |
| 24 | |
| 25 | start_response(status, response_headers) |
| 26 | |
| 27 | for item in output: |
| 28 | yield item |
| 29 | |
| 30 | return wsgiref.validate.validator(application) |
| 31 | |
| 32 | |
| 33 | def echo_body( |
no outgoing calls
no test coverage detected