asgi.py (1626:d20f04158166) asgi.py (2073:bc6ad31ce286)
1async def application(scope, receive, send):
2 assert scope['type'] == 'http'
3
1async def application(scope, receive, send):
2 assert scope['type'] == 'http'
3
4 await send({
5 'type': 'http.response.start',
6 'status': 204,
7 'headers': [],
8 })
4 await send(
5 {
6 'type': 'http.response.start',
7 'status': 204,
8 'headers': [],
9 }
10 )