MCPcopy Create free account
hub / github.com/deta/surf / getHeaderValue

Function getHeaderValue

app/src/main/mainWindow.ts:219–225  ·  view source on GitHub ↗
(headerName: string)

Source from the content-addressed store, hash-verified

217 }
218
219 const getHeaderValue = (headerName: string): string[] | undefined => {
220 if (!details.responseHeaders) return
221 const key = Object.keys(details.responseHeaders || {}).find(
222 (k) => k.toLowerCase() === headerName.toLowerCase()
223 )
224 return key ? details.responseHeaders[key] : undefined
225 }
226
227 const getFilename = (header: string | undefined): string | undefined => {
228 if (!header) return

Callers 1

createWindowFunction · 0.85

Calls 1

keysMethod · 0.80

Tested by

no test coverage detected