File size: 333 Bytes
776bd8f | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | async def app(scope, receive, send):
assert scope['type'] == 'http'
await send({
'type': 'http.response.start',
'status': 200,
'headers': [
[b'content-type', b'text/plain'],
],
})
await send({
'type': 'http.response.body',
'body': b'Hello, world!',
})
|