MCPcopy
hub / github.com/lissy93/web-check / appendParams

Function appendParams

api/_common/http.js:12–17  ·  view source on GitHub ↗
(url, params)

Source from the content-addressed store, hash-verified

10};
11
12const appendParams = (url, params) => {
13 if (!params) return url;
14 const u = new URL(url);
15 for (const [k, v] of Object.entries(params)) u.searchParams.set(k, v);
16 return u.href;
17};
18
19const headersToObject = (headers) => {
20 const out = {};

Callers 1

sendFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected