Files
nginx-unit/test/python/legacy/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

17 lines
312 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'),
],
}
)