Buckets:
| export const RSC_HEADER = 'rsc' as const | |
| export const ACTION_HEADER = 'next-action' as const | |
| // TODO: Instead of sending the full router state, we only need to send the | |
| // segment path. Saves bytes. Then we could also use this field for segment | |
| // prefetches, which also need to specify a particular segment. | |
| export const NEXT_ROUTER_STATE_TREE_HEADER = 'next-router-state-tree' as const | |
| export const NEXT_ROUTER_PREFETCH_HEADER = 'next-router-prefetch' as const | |
| // This contains the path to the segment being prefetched. | |
| // TODO: If we change next-router-state-tree to be a segment path, we can use | |
| // that instead. Then next-router-prefetch and next-router-segment-prefetch can | |
| // be merged into a single enum. | |
| export const NEXT_ROUTER_SEGMENT_PREFETCH_HEADER = | |
| 'next-router-segment-prefetch' as const | |
| export const NEXT_HMR_REFRESH_HEADER = 'next-hmr-refresh' as const | |
| export const NEXT_HMR_REFRESH_HASH_COOKIE = '__next_hmr_refresh_hash__' as const | |
| export const NEXT_URL = 'next-url' as const | |
| export const RSC_CONTENT_TYPE_HEADER = 'text/x-component' as const | |
| // Header for the Instant Navigation Testing API. In development and testing | |
| // builds, static pre-renders normally don't happen. This header tells the | |
| // server to perform a static pre-render anyway, allowing tests to assert on | |
| // the prefetched UI. Not exposed in production builds by default. | |
| export const NEXT_INSTANT_PREFETCH_HEADER = | |
| 'next-instant-navigation-testing-prefetch' as const | |
| // Cookie for the Instant Navigation Testing API. Used for MPA navigations | |
| // (page reload, full page load) where we can't set request headers. When set, | |
| // the server renders only the static shell. Not exposed in production builds | |
| // by default. | |
| export const NEXT_INSTANT_TEST_COOKIE = | |
| 'next-instant-navigation-testing' as const | |
| export const FLIGHT_HEADERS = [ | |
| RSC_HEADER, | |
| NEXT_ROUTER_STATE_TREE_HEADER, | |
| NEXT_ROUTER_PREFETCH_HEADER, | |
| NEXT_HMR_REFRESH_HEADER, | |
| NEXT_ROUTER_SEGMENT_PREFETCH_HEADER, | |
| ] as const | |
| export const NEXT_RSC_UNION_QUERY = '_rsc' as const | |
| export const NEXT_ROUTER_STALE_TIME_HEADER = 'x-nextjs-stale-time' as const | |
| export const NEXT_DID_POSTPONE_HEADER = 'x-nextjs-postponed' as const | |
| export const NEXT_REWRITTEN_PATH_HEADER = 'x-nextjs-rewritten-path' as const | |
| export const NEXT_REWRITTEN_QUERY_HEADER = 'x-nextjs-rewritten-query' as const | |
| export const NEXT_IS_PRERENDER_HEADER = 'x-nextjs-prerender' as const | |
| export const NEXT_ACTION_NOT_FOUND_HEADER = 'x-nextjs-action-not-found' as const | |
| export const NEXT_REQUEST_ID_HEADER = 'x-nextjs-request-id' as const | |
| export const NEXT_HTML_REQUEST_ID_HEADER = 'x-nextjs-html-request-id' as const | |
| // TODO: Should this include nextjs in the name, like the others? | |
| export const NEXT_ACTION_REVALIDATED_HEADER = 'x-action-revalidated' as const | |
Xet Storage Details
- Size:
- 2.78 kB
- Xet hash:
- 2e71ef3e7b2221585b8ac3b712e6766df4b6669945cedf75564663301592a8e5
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.