Home / Function/ is_permanent_redirect() — requests Function Reference

is_permanent_redirect() — requests Function Reference

Architecture documentation for the is_permanent_redirect() function in models.py from the requests codebase.

Entity Profile

Dependency Diagram

graph TD
  fce2fe1a_e07c_180b_a87b_6241b04345fd["is_permanent_redirect()"]
  eb32847e_3797_d01a_6e44_345e9ea7e251["Response"]
  fce2fe1a_e07c_180b_a87b_6241b04345fd -->|defined in| eb32847e_3797_d01a_6e44_345e9ea7e251
  style fce2fe1a_e07c_180b_a87b_6241b04345fd fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

src/requests/models.py lines 779–784

    def is_permanent_redirect(self):
        """True if this Response one of the permanent versions of redirect."""
        return "location" in self.headers and self.status_code in (
            codes.moved_permanently,
            codes.permanent_redirect,
        )

Domain

Subdomains

Frequently Asked Questions

What does is_permanent_redirect() do?
is_permanent_redirect() is a function in the requests codebase, defined in src/requests/models.py.
Where is is_permanent_redirect() defined?
is_permanent_redirect() is defined in src/requests/models.py at line 779.

Analyze Your Own Codebase

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

Try Supermodel Free