Tests: added ASGI HTTP applications.
This commit is contained in:
10
test/python/empty/asgi.py
Normal file
10
test/python/empty/asgi.py
Normal file
@@ -0,0 +1,10 @@
|
||||
async def application(scope, receive, send):
|
||||
assert scope['type'] == 'http'
|
||||
|
||||
await send({
|
||||
'type': 'http.response.start',
|
||||
'status': 200,
|
||||
'headers': [
|
||||
(b'content-length', b'0'),
|
||||
]
|
||||
})
|
||||
Reference in New Issue
Block a user