Class HttpTransport

java.lang.Object
com.alibaba.dashscope.transport.HttpTransport
All Implemented Interfaces:
AutoCloseable

public final class HttpTransport extends Object implements AutoCloseable
3.0 HTTP transport (design §6): one OkHttpClient (pool maxRequests=100 / perHost=20, keepAlive 5s, env-tunable), application-level retry/auth/UA interceptors, and the dual error layer — non-2xx status and HTTP-200-with-business-code both map through Errors; with raiseOnError(false) they instead surface on the returned envelope (2.x-style isError() semantics). Network failures always raise.