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

19 lines
402 B
Python

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