UNPKG

wdpapi

Version:

51WORLD WdpApi is a set of programming interfaces developed by JavaScript that is responsible for negotiating between web pages and cloud rendering platforms. Supported by 51Cloud rendering platform, it enables the users to create any HTML5 UI element on

63 lines (62 loc) 1.7 kB
interface requestManagerType { requestFunc: (path: string, data: any) => Promise<any>; requestFuncProtobuff: (path: string, data: any) => Promise<any>; } /** * @public * @class RequestController * @implements requestManagerType */ export declare class RequestController implements requestManagerType { private obj; /** * @constructor * @param {any} obj */ constructor(obj: any); /** * @private * @function setOptions * @param {string} path * @param {Uint8Array} data * @returns {optionType} */ private setOptions; /** * @public * @function requestFuncProtobuff * @param {string} path * @param {any} data * @returns {Promise<any>} */ requestFuncProtobuff(path: string, data: any): Promise<any>; /** * @public * @function requestFunc * @param {string} path * @param {any} data * @returns {Promise<any>} */ requestFunc(path: string, data: any): Promise<any>; /** * @public * @function requestAction * @param {string} path * @param {any} data * @param {string} method * @param {Record<string, any>} headers (optional) * @returns {Promise<any>} */ requestAction(path: string, data: any, method: string, headers?: Record<string, any>): Promise<any>; /** * @public * @function requestAction * @param {string} path * @param {any} data * @param {string} method * @param {Record<string, any>} headers (optional) * @returns {Promise<any>} */ requestActionForAgent(path: string, data: any, method: string, headers?: Record<string, any>): Promise<any>; } export {};