UNPKG

@dooboostore/simple-boot-http-server-ssr

Version:
10 lines 561 B
import { HttpHeaders as AHttpHeaders } from '@dooboostore/simple-boot-http-server/codes/HttpHeaders'; import { Mimes } from './Mimes'; export const HttpHeaders = Object.assign(Object.assign({}, AHttpHeaders), { XSimpleBootSsrIntentScheme: 'x-simple-boot-ssr-intent-scheme' }); export const makeIntentHeaderBySymbol = (symbol) => { return { [HttpHeaders.Accept]: Mimes.ApplicationJsonPostSimpleBootSsrIntentScheme, [HttpHeaders.XSimpleBootSsrIntentScheme]: `Symbol.for(${symbol.description})` }; }; //# sourceMappingURL=HttpHeaders.js.map