( ...responseInits: Array<ResponseInit | null | undefined> )
| 122 | * Combine multiple response init objects into one (uses combineHeaders) |
| 123 | */ |
| 124 | export function combineResponseInits( |
| 125 | ...responseInits: Array<ResponseInit | null | undefined> |
| 126 | ) { |
| 127 | let combined: ResponseInit = {} |
| 128 | for (const responseInit of responseInits) { |
| 129 | combined = { |
| 130 | ...responseInit, |
| 131 | headers: combineHeaders(combined.headers, responseInit?.headers), |
| 132 | } |
| 133 | } |
| 134 | return combined |
| 135 | } |
| 136 | |
| 137 | /** |
| 138 | * Returns true if the current navigation is submitting the current route's |
no test coverage detected