Class DashScopeHeaders
java.lang.Object
com.alibaba.dashscope.applications.agentstudio.protocol.DashScopeHeaders
Header construction for the AgentStudio HTTP paths.
-
Method Summary
Modifier and TypeMethodDescriptionbuildHttpHeaders(String apiKey, Boolean isSecurityCheck, Protocol protocol, Boolean isSSE, Boolean isAsyncTask, String workspace, Map<String, String> customHeaders, String customUserAgent, String module) static StringfindRequestId(Map<String, ?> headers) static StringrequestIdOrUnknown(String requestId) sdkTrackingHeaders(String module) SDK-generated tracking headers for the direct OkHttp paths (file upload/download and session SSE).static Stringstatic String
-
Method Details
-
findRequestId
-
requestIdOrUnknown
-
userAgent
-
userAgent
-
sdkTrackingHeaders
SDK-generated tracking headers for the direct OkHttp paths (file upload/download and session SSE). Returns an empty map whenDASHSCOPE_DISABLE_SDK_HEADERSopts out; callers must still keep any headers they set explicitly. -
buildHttpHeaders
public static Map<String,String> buildHttpHeaders(String apiKey, Boolean isSecurityCheck, Protocol protocol, Boolean isSSE, Boolean isAsyncTask, String workspace, Map<String, String> customHeaders, String customUserAgent, String module) throws NoApiKeyException- Throws:
NoApiKeyException
-