MCPcopy Index your code
hub / github.com/simstudioai/sim / headersToObject

Function headersToObject

apps/sim/lib/api/server/validation.ts:212–218  ·  view source on GitHub ↗
(headers: Headers)

Source from the content-addressed store, hash-verified

210}
211
212export function headersToObject(headers: Headers): Record<string, string> {
213 const output: Record<string, string> = {}
214 headers.forEach((value, key) => {
215 output[key] = value
216 })
217 return output
218}
219
220async function parseContextParams<TContext>(
221 context: TContext

Callers 1

parseRequestFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected