nonebot2/website/versioned_docs/version-2.0.0-beta.4/api/drivers/httpx.md
github-actions[bot] 58d8815f39 🔖 Release 2.0.0-beta.4
2022-06-20 11:40:59 +00:00

1020 B

sidebar_position description
3 nonebot.drivers.httpx 模块

nonebot.drivers.httpx

HTTPX 驱动适配

nb driver install httpx
# 或者
pip install nonebot2[httpx]

:::tip 提示 本驱动仅支持客户端 HTTP 连接 :::

class Mixin()

  • 说明

    HTTPX Mixin

property type

  • 类型: str

async method request(self, setup)

  • 参数

    • setup (nonebot.internal.driver.model.Request)
  • 返回

    • nonebot.internal.driver.model.Response

method websocket(self, setup)

  • 参数

    • setup (nonebot.internal.driver.model.Request)
  • 返回

    • AsyncGenerator[nonebot.internal.driver.model.WebSocket, NoneType]

class Driver(env, config)

  • 说明

    HTTPX Driver

  • 参数

property type

  • 类型: str