(headers: Headers)
| 210 | } |
| 211 | |
| 212 | export 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 | |
| 220 | async function parseContextParams<TContext>( |
| 221 | context: TContext |