MCPcopy Create free account
hub / github.com/Tron521/codex-console-temp / create_http_client

Function create_http_client

src/core/http_client.py:398–412  ·  view source on GitHub ↗

创建 HTTP 客户端工厂函数 Args: proxy_url: 代理 URL config: 请求配置 Returns: HTTPClient 实例

(
    proxy_url: Optional[str] = None,
    config: Optional[RequestConfig] = None
)

Source from the content-addressed store, hash-verified

396
397
398def create_http_client(
399 proxy_url: Optional[str] = None,
400 config: Optional[RequestConfig] = None
401) -> HTTPClient:
402 """
403 创建 HTTP 客户端工厂函数
404
405 Args:
406 proxy_url: 代理 URL
407 config: 请求配置
408
409 Returns:
410 HTTPClient 实例
411 """
412 return HTTPClient(proxy_url, config)
413
414
415def create_openai_client(

Callers

nothing calls this directly

Calls 1

HTTPClientClass · 0.85

Tested by

no test coverage detected