MCPcopy Create free account
hub / github.com/alibaba/lowcode-engine / get

Function get

packages/editor-core/src/utils/request.ts:26–32  ·  view source on GitHub ↗
(dataAPI: string, params?: object, headers?: object, otherProps?: object)

Source from the content-addressed store, hash-verified

24}
25
26export function get(dataAPI: string, params?: object, headers?: object, otherProps?: object): Promise<any> {
27 const fetchHeaders = {
28 Accept: 'application/json',
29 ...headers,
30 };
31 return request(buildUrl(dataAPI, params), 'GET', undefined, fetchHeaders, otherProps);
32}
33
34export function post(dataAPI: string, params?: object, headers?: object, otherProps?: object): Promise<any> {
35 const fetchHeaders = {

Callers 2

_innerWaitForThingFunction · 0.50
waitForThingFunction · 0.50

Calls 2

requestFunction · 0.70
buildUrlFunction · 0.70

Tested by

no test coverage detected