MCPcopy Create free account
hub / github.com/SplootCode/splootcode / getHeader

Function getHeader

packages/editor/src/runtime/response_viewer.tsx:150–154  ·  view source on GitHub ↗
(headers: Record<string, string>, key: string)

Source from the content-addressed store, hash-verified

148}
149
150export function getHeader(headers: Record<string, string>, key: string) {
151 const safeHeaders = Object.fromEntries(Object.entries(headers).map(([key, value]) => [key.toLowerCase(), value]))
152
153 return safeHeaders[key.toLowerCase()]
154}
155
156export function ResponseViewerInfo(props: ResponseViewerProps) {
157 const { response } = props

Callers 1

ResponseViewerInfoFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected