@enter-at/lambda-handlers
Version:
An opinionated Typescript package that facilitates specifying AWS Lambda handlers including input validation, error handling and response formatting.
16 lines (15 loc) • 377 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.ContentTypeHeader = void 0;
class ContentTypeHeader {
contentType;
constructor(contentType) {
this.contentType = contentType;
}
create() {
return {
"Content-Type": this.contentType,
};
}
}
exports.ContentTypeHeader = ContentTypeHeader;