UNPKG

@furystack/rest-service

Version:

Repository implementation for FuryStack

34 lines 821 B
export const JsonResult = (chunk, statusCode = 200, headers) => ({ statusCode, chunk, headers: { ...headers, 'Content-Type': 'application/json', }, }); export const PlainTextResult = (text, statusCode = 200, headers) => ({ statusCode, chunk: text, headers: { ...headers, 'Content-Type': 'plain/text', }, }); export const XmlResult = (text, statusCode = 200, headers) => ({ statusCode, chunk: text, headers: { ...headers, 'Content-Type': 'application/xml;charset=utf-8', }, }); export const EmptyResult = (statusCode = 200, headers) => ({ statusCode, headers: { ...headers, }, }); export const BypassResult = () => ({ chunk: 'BypassResult', }); //# sourceMappingURL=request-action-implementation.js.map