1async def application(scope, receive, send): 2 assert scope['type'] == 'http' 3 4 await send( 5 { 6 'type': 'http.response.start', 7 'status': 200, 8 'headers': [ 9 (b'content-length', b'0'), 10 (b'query-string', scope['query_string']), 11 ], 12 } 13 ) 14