INNER CODE UNIT · Python

_get_responder

falconry/falcon · falcon/app.py:1099

    def _get_responder(
        self, req: _ReqT
    ) -> tuple[
        ResponderCallable | AsgiResponderCallable | AsgiResponderWsCallable,
        dict[str, Any],
        object,
        str | None,
    ]:
        """Search routes for a matching responder.

        Args:
            req (Request): The request object.

        Returns:
            tuple: A 4-member tuple consisting of a responder callable,
            a ``dict`` containing parsed path fields (if any were specified in
            the matching route's URI template), a reference to the responder's
            resource instance, and the matching URI template.

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…