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