INNER CODE UNIT · Python

child_scope

stephenhillier/starlette_exporter · starlette_exporter/middleware.py:102

                child_scope = {**scope, **child_scope}
                child_route_name = get_matching_route_path(
                    child_scope,
                    child_routes,
                    route_name,
                )
                if child_route_name is None:
                    return None
                if route_name is None:
                    return child_route_name
                route_name += child_route_name

            if route_name is None:
                return None
            return route_name
        elif match == Match.PARTIAL and route_name is None:
            route_name = getattr(route, "path", None)

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…