Sindbad~EG File Manager
�
'ٜg� � �B � d dl mZ d dlZd dlZddlmZ ddlmZ ddlm Z ddlm
Z
ej rd dlm
Z
dd lmZ dd
lmZ ddlmZ dd
lmZ G d� de� Z G d� dee� Z G d� de� Z G d� de� Z G d� dee� Z G d� de� Z G d� de� Zy)� )�annotationsN� )�
BadRequest)�
HTTPException)�cached_property)�redirect)�WSGIEnvironment)�Request)�Response� )�
MapAdapter)�Rulec � � e Zd ZdZy)�RoutingExceptionzxSpecial exceptions that require the application to redirect, notifying
about missing urls, etc.
:internal:
N��__name__�
__module__�__qualname__�__doc__� � �F/usr/local/lib/python3.12/site-packages/werkzeug/routing/exceptions.pyr r s � �r r c �@ � � e Zd ZdZdZd� fd�Z d dd�Z� xZS )�RequestRedirectz�Raise if the map requests a redirect. This is for example the case if
`strict_slashes` are activated and an url that requires a trailing slash.
The attribute `new_url` contains the absolute destination url.
i4 c �2 �� t �| � |� || _ y �N)�super�__init__�new_url)�selfr � __class__s �r r zRequestRedirect.__init__% s �� �
����!���r c �B � t | j | j � S r )r r �code)r �environ�scopes r �get_responsezRequestRedirect.get_response) s � �
����d�i�i�0�0r )r �str�return�None)NN)r$ z WSGIEnvironment | Request | Noner% zdict[str, t.Any] | Noner( r )r r r r r# r r&