UNPKG

@farris/bef-vue

Version:
37 lines (36 loc) 1.01 kB
import { HttpHeaders } from '@farris/devkit-vue'; /** * BefHttp工具类 */ declare class BefHttpUtil { /** * 追加SessionId头 */ static appendSessionId(headers: HttpHeaders, sessionId: string): any; /** * 追加CommonVariable头 * @summary * 框架会话token,等价于原来的SessionId */ static appendCafRuntimeCommonVariable(headers: any, commonVariable: string): any; /** * 追加X-CAF-Runtime-Context头 * @summary * X-CAF-Runtime-Context等价于BeSessionId */ static appendCafRuntimeContext(headers: any, context: string): any; /** * 追加Content-Type头 * @summary * 提交内容的MIME类型,默认为application/json */ static appendContextType(headers: any, contentType?: string): any; /** * 追加Func-Inst-Id * @param headers * @param funcInstId * @returns */ static appendFuncInstId(headers: any, funcInstId: string): any; } export { BefHttpUtil };