@dooboostore/simple-boot-http-server-ssr
Version:
front end SPA frameworks SSR
10 lines • 561 B
JavaScript
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