MCPcopy
hub / github.com/alibaba/lowcode-engine / get

Function get

packages/renderer-core/src/utils/request.ts:31–38  ·  view source on GitHub ↗
(dataAPI: any, params = {}, headers = {}, otherProps = {})

Source from the content-addressed store, hash-verified

29 * @returns
30 */
31 export function get(dataAPI: any, params = {}, headers = {}, otherProps = {}) {
32 const processedHeaders = {
33 Accept: 'application/json',
34 ...headers,
35 };
36 const url = buildUrl(dataAPI, params);
37 return request(url, 'GET', null, processedHeaders, otherProps);
38}
39
40/**
41 * do Post request

Callers 2

doRequestFunction · 0.90
request.test.tsFile · 0.90

Calls 2

buildUrlFunction · 0.70
requestFunction · 0.70

Tested by

no test coverage detected