Package com.alibaba.dashscope.transport
Class AuthInterceptor
java.lang.Object
com.alibaba.dashscope.transport.AuthInterceptor
- All Implemented Interfaces:
okhttp3.Interceptor
Attaches Authorization and X-DashScope-WorkSpace from the per-request auth tag. Headers already
set on the request (RequestOptions custom headers) win — they are documented as "applied last,
may override SDK-set headers".
-
Nested Class Summary
Nested classes/interfaces inherited from interface okhttp3.Interceptor
okhttp3.Interceptor.Chain, okhttp3.Interceptor.Companion -
Field Summary
FieldsFields inherited from interface okhttp3.Interceptor
Companion -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
HEADER_WORKSPACE
- See Also:
-
-
Constructor Details
-
AuthInterceptor
public AuthInterceptor()
-
-
Method Details
-
intercept
- Specified by:
interceptin interfaceokhttp3.Interceptor- Throws:
IOException
-