(header: string | readonly string[] | undefined)
| 49 | } |
| 50 | |
| 51 | export function flattenHeader(header: string | readonly string[] | undefined): string | undefined { |
| 52 | if (typeof header === 'string' || header === undefined) { |
| 53 | return header |
| 54 | } |
| 55 | |
| 56 | if (header.length === 0) { |
| 57 | return undefined |
| 58 | } |
| 59 | |
| 60 | return header.join(', ') |
| 61 | } |
| 62 | |
| 63 | export function replicateStandardLazyResponse( |
| 64 | response: StandardLazyResponse, |
no outgoing calls
no test coverage detected