MCPcopy Create free account
hub / github.com/EsperoTech/yaade / encodeFormDataBody

Function encodeFormDataBody

client/src/components/requestPanel/RequestSender.tsx:220–229  ·  view source on GitHub ↗
(kvs: KVRow[])

Source from the content-addressed store, hash-verified

218 }
219
220 const encodeFormDataBody = (kvs: KVRow[]) => {
221 const params = new URLSearchParams();
222 for (const kv of kvs) {
223 if (kv.isEnabled !== false) {
224 params.append(kv.key, kv.value);
225 }
226 }
227
228 return params.toString();
229 };
230
231 async function sendRequest(
232 request: RestRequest,

Callers 2

sendRequestToExtensionFunction · 0.85
sendRequestToServerFunction · 0.85

Calls 2

appendMethod · 0.45
toStringMethod · 0.45

Tested by

no test coverage detected