INNER CODE UNIT · Python

router_options

falconry/falcon · falcon/app.py:557

    def router_options(self) -> routing.CompiledRouterOptions:
        """Configuration options for the router.

        If a custom router is in use, and it does not expose any
        configurable options, referencing this attribute will raise
        an instance of ``AttributeError``.

        See also: :ref:`CompiledRouterOptions <compiled_router_options>`.
        """
        return self._router.options

    def add_middleware(
        self,
        middleware: SyncMiddleware[_ReqT, _RespT]
        | Iterable[SyncMiddleware[_ReqT, _RespT]],
    ) -> None:
        """Add one or more additional middleware components.

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…