httk.serve.web.widgets.assets

Engine-owned registration for trusted widget assets.

Exceptions

WidgetAssetConflictError

A path was declared with different asset content or content type.

Classes

WidgetAssetRegistry

Thread-safe, per-engine registry with deterministic conflict handling.

Module Contents

exception httk.serve.web.widgets.assets.WidgetAssetConflictError(path: str)[source]

Bases: ValueError

A path was declared with different asset content or content type.

path[source]
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]