관리-도구
편집 파일: util.cpython-311.opt-2.pyc
� c��f` � �j � d dl Z g d�Z G d� d� � Zd� Zd� Zd d�Zd � Zd � Zh d�j Z d� Z dS )� N)�FileWrapper�guess_scheme�application_uri�request_uri�shift_path_info�setup_testing_defaultsc �$ � e Zd Z dd�Zd� Zd� ZdS )r � c �^ � || _ || _ t |d� � r|j | _ d S d S )N�close)�filelike�blksize�hasattrr )�selfr r s �3/opt/alt/python311/lib64/python3.11/wsgiref/util.py�__init__zFileWrapper.__init__ s9 � � �� �����8�G�$�$� (�!��D�J�J�J� (� (� c � � | S �N� )r s r �__iter__zFileWrapper.__iter__ s � ��r c �V � | j � | j � � }|r|S t �r )r �readr � StopIteration)r �datas r �__next__zFileWrapper.__next__ s, � ��}�!�!�$�,�/�/��� ��K��r N)r )�__name__� __module__�__qualname__r r r r r r r r sI � � � � � �;�(� (� (� (�� � �� � � � r r c �: � | � d� � dv rdS dS )N�HTTPS)�yes�on�1�https�http)�get)�environs r r r s) � ���{�{�7���/�/�/��w��vr c �N � | d dz }ddl m} | � d� � r|| d z }nL|| d z }| d dk r| d d k r|d | d z z }n| d dk r|d | d z z }| || � d� � pd d�� � z }|S )N�wsgi.url_schemez://r ��quote� HTTP_HOST�SERVER_NAMEr% �SERVER_PORT�443�:�80�SCRIPT_NAME�/�latin1)�encoding)�urllib.parser, r'