MCPcopy Create free account
hub / github.com/Botloader/botloader / request

Function request

components/runtime/src/ts/httpclient.ts:15–21  ·  view source on GitHub ↗
(method: string, path: string, init?: RequestInit)

Source from the content-addressed store, hash-verified

13 * @returns A constructed request, this still needs to be sent with a optional body
14 */
15 export function request(method: string, path: string, init?: RequestInit) {
16 let opts = {
17 ...(init ?? {})
18 }
19
20 return new Request(method, path, opts);
21 }
22
23 /**
24 * Construct a new GET request

Callers 9

getFunction · 0.85
postFunction · 0.85
headFunction · 0.85
patchFunction · 0.85
putFunction · 0.85
delFunction · 0.85
optionsFunction · 0.85
traceFunction · 0.85
connectFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected