silverwolf-x/project / packages /next /src /server /app-render /strip-flight-headers.ts
silverwolf-x's picture
download
raw
383 Bytes
import type { IncomingHttpHeaders } from 'node:http'
import { FLIGHT_HEADERS } from '../../client/components/app-router-headers'
/**
* Removes the flight headers from the request.
*
* @param req the request to strip the headers from
*/
export function stripFlightHeaders(headers: IncomingHttpHeaders) {
for (const header of FLIGHT_HEADERS) {
delete headers[header]
}
}

Xet Storage Details

Size:
383 Bytes
·
Xet hash:
89a7efec798b889540d76860894cc5863fcde5c4eb7b850515f533b6b78107bd

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.