mirror of
https://github.com/suyiiyii/nonebot-bison.git
synced 2025-07-26 14:24:08 +08:00
12 lines
232 B
Python
12 lines
232 B
Python
import functools
|
|
|
|
import httpx
|
|
|
|
from ..plugin_config import plugin_config
|
|
|
|
http_client = functools.partial(
|
|
httpx.AsyncClient,
|
|
proxies=plugin_config.bison_proxy or None,
|
|
headers={"user-agent": plugin_config.bison_ua},
|
|
)
|