Home / Class/ PrefixPathMiddleware Class — flask Architecture

PrefixPathMiddleware Class — flask Architecture

Architecture documentation for the PrefixPathMiddleware class in test_basic.py from the flask codebase.

Entity Profile

Dependency Diagram

graph TD
  53c2d4f6_b1e6_ac57_6e1e_8286502c26c1["PrefixPathMiddleware"]
  85bc4fb5_d1d7_a135_020d_69e052c12c0f["test_basic.py"]
  53c2d4f6_b1e6_ac57_6e1e_8286502c26c1 -->|defined in| 85bc4fb5_d1d7_a135_020d_69e052c12c0f
  64360e4e_d30f_f712_8941_c836e9ca7032["__init__()"]
  53c2d4f6_b1e6_ac57_6e1e_8286502c26c1 -->|method| 64360e4e_d30f_f712_8941_c836e9ca7032
  be4b13f5_4994_eb69_f3d9_fa568a99be58["__call__()"]
  53c2d4f6_b1e6_ac57_6e1e_8286502c26c1 -->|method| be4b13f5_4994_eb69_f3d9_fa568a99be58

Relationship Graph

Source Code

tests/test_basic.py lines 270–277

    class PrefixPathMiddleware:
        def __init__(self, app, prefix):
            self.app = app
            self.prefix = prefix

        def __call__(self, environ, start_response):
            environ["SCRIPT_NAME"] = self.prefix
            return self.app(environ, start_response)

Defined In

Frequently Asked Questions

What is the PrefixPathMiddleware class?
PrefixPathMiddleware is a class in the flask codebase, defined in tests/test_basic.py.
Where is PrefixPathMiddleware defined?
PrefixPathMiddleware is defined in tests/test_basic.py at line 270.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free