Files
nginx-unit/test/python/legacy_force/asgi.py
Andrei Zeliankou 5a8337933d Tests: pathlib used where appropriate
Also fixed various pylint errors and style issues.
2024-01-15 15:48:58 +00:00

20 lines
418 B
Python

def application(scope, receive=None, send=None):
assert scope['type'] == 'http'
if receive is None and send is None:
return app_http
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'),
],
}
)