httk.serve.web.widgets.assets ============================= .. py:module:: httk.serve.web.widgets.assets .. autoapi-nested-parse:: Engine-owned registration for trusted widget assets. Exceptions ---------- .. autoapisummary:: httk.serve.web.widgets.assets.WidgetAssetConflictError Classes ------- .. autoapisummary:: httk.serve.web.widgets.assets.WidgetAssetRegistry Module Contents --------------- .. py:exception:: WidgetAssetConflictError(path: str) Bases: :py:obj:`ValueError` A path was declared with different asset content or content type. .. py:attribute:: path .. py:class:: WidgetAssetRegistry Thread-safe, per-engine registry with deterministic conflict handling. .. py:method:: register(asset: httk.serve.web.widgets.core.WidgetAsset) -> httk.serve.web.widgets.core.WidgetAsset .. py:method:: register_many(assets: tuple[httk.serve.web.widgets.core.WidgetAsset, Ellipsis]) -> tuple[httk.serve.web.widgets.core.WidgetAsset, Ellipsis] Atomically register declarations after preflighting every conflict. .. py:method:: get(path: str) -> httk.serve.web.widgets.core.WidgetAsset | None