@webpieces/core-util 0.3.165 → 0.3.167
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/ContextKey.js +1 -0
- package/src/ContextKey.js.map +1 -1
package/package.json
CHANGED
package/src/ContextKey.js
CHANGED
package/src/ContextKey.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ContextKey.js","sourceRoot":"","sources":["../../../../../packages/core/core-util/src/ContextKey.ts"],"names":[],"mappings":";;;AAEA;;;;;;;;;;;;;;GAcG;AACH,MAAa,UAAU;
|
|
1
|
+
{"version":3,"file":"ContextKey.js","sourceRoot":"","sources":["../../../../../packages/core/core-util/src/ContextKey.ts"],"names":[],"mappings":";;;AAEA;;;;;;;;;;;;;;GAcG;AACH,MAAa,UAAU;IACU;IAA7B,YAA6B,OAAe;QAAf,YAAO,GAAP,OAAO,CAAQ;IAAG,CAAC;IAEhD,aAAa;QACT,OAAO,IAAI,CAAC,OAAO,CAAC;IACxB,CAAC;CACJ;AAND,gCAMC","sourcesContent":["import { Header } from './Header';\n\n/**\n * ContextKey - Typed key for non-HTTP context values stored in RequestContext.\n *\n * Similar to PlatformHeader but for context-only values that don't correspond\n * to HTTP headers (e.g., METHOD_META, REQUEST_PATH).\n *\n * Customers can define their own ContextKey instances for app-specific values.\n *\n * Usage:\n * ```typescript\n * const MY_KEY = new ContextKey('my-app-key');\n * RequestContext.putHeader(MY_KEY, someValue);\n * const value = RequestContext.getHeader(MY_KEY);\n * ```\n */\nexport class ContextKey implements Header {\n constructor(private readonly keyName: string) {}\n\n getHeaderName(): string {\n return this.keyName;\n }\n}\n"]}
|