Files
nginx-unit/test/python/legacy/asgi.py
Andrei Zeliankou 6c97a1a069 Tests: style.
2021-04-05 14:03:05 +01:00

15 lines
282 B
Python

def application(scope):
assert scope['type'] == 'http'
return app_http
async def app_http(receive, send):
await send(
{
'type': 'http.response.start',
'status': 200,
'headers': [(b'content-length', b'0'),],
}
)