(
environ: WSGIEnvironment, start_response: StartResponse
)
| 31 | |
| 32 | |
| 33 | def echo_body( |
| 34 | environ: WSGIEnvironment, start_response: StartResponse |
| 35 | ) -> typing.Iterable[bytes]: |
| 36 | status = "200 OK" |
| 37 | output = environ["wsgi.input"].read() |
| 38 | |
| 39 | response_headers = [ |
| 40 | ("Content-type", "text/plain"), |
| 41 | ] |
| 42 | |
| 43 | start_response(status, response_headers) |
| 44 | |
| 45 | return [output] |
| 46 | |
| 47 | |
| 48 | def echo_body_with_response_stream( |
no test coverage detected