11626Smax.romanov@nginx.comasync def application(scope, receive, send): 21626Smax.romanov@nginx.com assert scope['type'] == 'http' 31626Smax.romanov@nginx.com 4*1848Szelenkov@nginx.com await send( 5*1848Szelenkov@nginx.com { 6*1848Szelenkov@nginx.com 'type': 'http.response.start', 7*1848Szelenkov@nginx.com 'status': 200, 8*1848Szelenkov@nginx.com 'headers': [ 9*1848Szelenkov@nginx.com (b'content-length', b'0'), 10*1848Szelenkov@nginx.com (b'server-port', str(scope['server'][1]).encode()), 11*1848Szelenkov@nginx.com ], 12*1848Szelenkov@nginx.com } 13*1848Szelenkov@nginx.com ) 14