MCPcopy Create free account
hub / github.com/chartbrew/chartbrew / _changeMethod

Function _changeMethod

client/src/sources/api/api-builder.jsx:333–340  ·  view source on GitHub ↗
(value)

Source from the content-addressed store, hash-verified

331 };
332
333 const _changeMethod = (value) => {
334 if (value === "GET" || value === "OPTIONS") {
335 setApiRequest({ ...apiRequest, method: value });
336 setActiveMenu("headers");
337 } else {
338 setApiRequest({ ...apiRequest, method: value });
339 }
340 };
341
342 const _onChangeBody = (value) => {
343 setApiRequest({ ...apiRequest, body: value });

Callers 1

ApiBuilderFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected