(headers: Record<string, string>, key: string)
| 148 | } |
| 149 | |
| 150 | export 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 | |
| 156 | export function ResponseViewerInfo(props: ResponseViewerProps) { |
| 157 | const { response } = props |
no outgoing calls
no test coverage detected