(h3Event: H3Event)
| 15 | } |
| 16 | |
| 17 | export function getFetchEvent(h3Event: H3Event): FetchEvent { |
| 18 | if (!h3Event.context[FETCH_EVENT_CONTEXT]) { |
| 19 | const fetchEvent = createFetchEvent(h3Event); |
| 20 | h3Event.context[FETCH_EVENT_CONTEXT] = fetchEvent; |
| 21 | } |
| 22 | |
| 23 | return h3Event.context[FETCH_EVENT_CONTEXT] as any; |
| 24 | } |
| 25 | |
| 26 | export function mergeResponseHeaders(h3Event: H3Event, headers: Headers) { |
| 27 | for (const [key, value] of headers.entries()) { |
no test coverage detected