http-directives
Version:
A TypeScript-friendly package that provides strongly-typed HTTP constants
47 lines (45 loc) • 1.76 kB
JavaScript
;
var __defProp = Object.defineProperty;
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
var __getOwnPropNames = Object.getOwnPropertyNames;
var __hasOwnProp = Object.prototype.hasOwnProperty;
var __export = (target, all) => {
for (var name in all)
__defProp(target, name, { get: all[name], enumerable: true });
};
var __copyProps = (to, from, except, desc) => {
if (from && typeof from === "object" || typeof from === "function") {
for (let key of __getOwnPropNames(from))
if (!__hasOwnProp.call(to, key) && key !== except)
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
}
return to;
};
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
// src/directives/cache-control.ts
var cache_control_exports = {};
__export(cache_control_exports, {
CacheControl: () => CacheControl
});
module.exports = __toCommonJS(cache_control_exports);
var CacheControl = class {
};
CacheControl.MAX_AGE = "max-age";
CacheControl.S_MAXAGE = "s-maxage";
CacheControl.MIN_FRESH = "min-fresh";
CacheControl.MAX_STALE = "max-stale";
CacheControl.PUBLIC = "public";
CacheControl.PRIVATE = "private";
CacheControl.NO_STORE = "no-store";
CacheControl.NO_CACHE = "no-cache";
CacheControl.MUST_REVALIDATE = "must-revalidate";
CacheControl.IMMUTABLE = "immutable";
CacheControl.NO_TRANSFORM = "no-transform";
CacheControl.ONLY_IF_CACHED = "only-if-cached";
CacheControl.PROXY_REVALIDATE = "proxy-revalidate";
CacheControl.STALE_IF_ERROR = "stale-if-error";
CacheControl.STALE_WHILE_REVALIDATE = "stale-while-revalidate";
// Annotate the CommonJS export names for ESM import in node:
0 && (module.exports = {
CacheControl
});