Feature: 支持给 FastAPIQuart 传递额外的参数 (#1543)

This commit is contained in:
Akirami
2023-01-04 12:58:26 +08:00
committed by GitHub
parent a9125cd696
commit 006b9dd816
3 changed files with 22 additions and 3 deletions

View File

@ -146,6 +146,12 @@ nonebot.run(app="bot:app")
默认值:`None`
说明:不要监听的文件列表,支持 glob pattern默认为 uvicorn 默认值
##### `fastapi_extra`
类型:`Dist[str, Any]`
默认值:`{}`
说明:传递给 `FastAPI` 的其他参数
### Quart
类型:`ReverseDriver`
@ -199,6 +205,12 @@ nonebot.run(app="bot:app")
默认值:`None`
说明:不要监听的文件列表,支持 glob pattern默认为 uvicorn 默认值
##### `quart_extra`
类型:`Dist[str, Any]`
默认值:`{}`
说明:传递给 `Quart` 的其他参数
### HTTPX
类型:`ForwardDriver`