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