MCPcopy
hub / github.com/ComposioHQ/composio / parseProxyBody

Function parseProxyBody

ts/packages/cli/src/commands/proxy.cmd.ts:97–103  ·  view source on GitHub ↗
(raw: string)

Source from the content-addressed store, hash-verified

95const resolveBodyInput = (input: Option.Option<string>) => resolveOptionalTextInput(input);
96
97export const parseProxyBody = (raw: string): unknown => {
98 try {
99 return parseJsonIsh(raw);
100 } catch {
101 return raw;
102 }
103};
104
105const formatProxyOutput = (
106 result: Pick<SessionProxyExecuteResponse, 'status' | 'data' | 'headers' | 'binary_data'>

Callers 2

proxy.cmd.test.tsFile · 0.90
proxy.cmd.tsFile · 0.85

Calls 1

parseJsonIshFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…