类 JdkHttpTransport.Builder
java.lang.Object
io.agentscope.core.model.transport.JdkHttpTransport.Builder
- 封闭类:
JdkHttpTransport
Builder for JdkHttpTransport.
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明build()Build the JdkHttpTransport.client(HttpClient client) Use an existing HttpClient instance.config(HttpTransportConfig config) Set the transport configuration.
-
构造器详细资料
-
Builder
public Builder()
-
-
方法详细资料
-
config
Set the transport configuration.- 参数:
config- the configuration- 返回:
- this builder
-
client
Use an existing HttpClient instance.When set, the configuration will only be used for reference, and the provided client will be used as-is.
- 参数:
client- the existing HttpClient- 返回:
- this builder
-
build
Build the JdkHttpTransport.- 返回:
- a new JdkHttpTransport instance
-