Package io.github.easy4j.opencode
Class OpenCodeHttpClientConfig
java.lang.Object
io.github.easy4j.opencode.OpenCodeHttpClientConfig
Configuration for the OpenCode HTTP Server client.
Covers server base URL, Basic Auth, TLS, HTTP timeouts, connection pool sizing, streaming thread pool, and default model/agent settings.
- Since:
- 1.0.0
- Author:
- Loong Wan
- See Also:
-
Constructor Summary
ConstructorsConstructorDescription使用默认关闭的调试配置创建 HTTP 配置。使用客户端级共享调试配置创建 HTTP 配置。 -
Method Summary
-
Constructor Details
-
OpenCodeHttpClientConfig
public OpenCodeHttpClientConfig()使用默认关闭的调试配置创建 HTTP 配置。 -
OpenCodeHttpClientConfig
使用客户端级共享调试配置创建 HTTP 配置。- Parameters:
debug- 客户端级调试配置
-
-
Method Details
-
resolvePassword
解析用于 HTTP Basic Auth 的密码。- Returns:
- 服务端或 CLI 返回的文本值;无内容时可能为空字符串
-