httk.serve.web.widgets.assets¶
Engine-owned registration for trusted widget assets.
Exceptions¶
A path was declared with different asset content or content type. |
Classes¶
Thread-safe, per-engine registry with deterministic conflict handling. |
Module Contents¶
- exception httk.serve.web.widgets.assets.WidgetAssetConflictError(path: str)[source]¶
Bases:
ValueErrorA path was declared with different asset content or content type.
- class httk.serve.web.widgets.assets.WidgetAssetRegistry[source]¶
Thread-safe, per-engine registry with deterministic conflict handling.
- register(asset: httk.serve.web.widgets.core.WidgetAsset) httk.serve.web.widgets.core.WidgetAsset[source]¶
- register_many(assets: tuple[httk.serve.web.widgets.core.WidgetAsset, Ellipsis]) tuple[httk.serve.web.widgets.core.WidgetAsset, Ellipsis][source]¶
Atomically register declarations after preflighting every conflict.
- get(path: str) httk.serve.web.widgets.core.WidgetAsset | None[source]¶