3 Star 1 Fork 0

Gitee 极速下载 / Robyn

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
此仓库是为了提升国内下载速度的镜像仓库,每日同步一次。 原始仓库: https://github.com/sansyrox/robyn
克隆/下载
async_test.py 438 Bytes
一键复制 编辑 原始数据 按行查看 历史
Sanskar Jethi 提交于 2021-06-29 17:41 . Add asgi support
class App:
@staticmethod
async def mount_asgi(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!',
})
app = App()
Python
1
https://gitee.com/mirrors/Robyn.git
git@gitee.com:mirrors/Robyn.git
mirrors
Robyn
Robyn
asgi-support

搜索帮助