Tests: added ASGI HTTP applications.

This commit is contained in:
Max Romanov
2020-10-01 23:55:43 +03:00
parent d97e3a3296
commit 12f225a43a
9 changed files with 598 additions and 0 deletions

View File

@@ -0,0 +1,11 @@
async def application(scope, receive, send):
assert scope['type'] == 'http'
await send({
'type': 'http.response.start',
'status': 200,
'headers': [
(b'content-length', b'0'),
(b'server-port', str(scope['server'][1]).encode()),
]
})