
    wdf                     b    d dl mZ d dl mZ d dlmZ  G d de          Z G d de          ZdS )	   )parse_authorization_header)parse_www_authenticate_header)cached_propertyc                   (    e Zd ZdZed             ZdS )AuthorizationMixinzAdds an :attr:`authorization` property that represents the parsed
    value of the `Authorization` header as
    :class:`~werkzeug.datastructures.Authorization` object.
    c                 T    | j                             d          }t          |          S )z*The `Authorization` object in parsed form.HTTP_AUTHORIZATION)environgetr   )selfheaders     [/var/www/book.euthymeo.com/html/venv/lib/python3.11/site-packages/werkzeug/wrappers/auth.pyauthorizationz AuthorizationMixin.authorization   s(     !!"677)&111    N)__name__
__module____qualname____doc__r   r    r   r   r   r      s9         
 2 2 _2 2 2r   r   c                   (    e Zd ZdZed             ZdS )WWWAuthenticateMixinz>Adds a :attr:`www_authenticate` property to a response object.c                 b      fd} j                             d          }t          ||          S )z/The `WWW-Authenticate` header in a parsed form.c                 r    | sdj         v r
j         d= d S | r|                                 j         d<   d S d S )Nwww-authenticatezWWW-Authenticate)headers	to_header)www_authr   s    r   	on_updatez8WWWAuthenticateMixin.www_authenticate.<locals>.on_update   s^     H 2dl B BL!3444 H3;3E3E3G3G/000H Hr   r   )r   r   r   )r   r   r   s   `  r   www_authenticatez%WWWAuthenticateMixin.www_authenticate   sI    	H 	H 	H 	H 	H !!"455,VY???r   N)r   r   r   r   propertyr   r   r   r   r   r      s8        HH
@ 
@ X
@ 
@ 
@r   r   N)httpr   r   utilsr   objectr   r   r   r   r   <module>r$      s    - - - - - - 0 0 0 0 0 0 # # # # # #
2 
2 
2 
2 
2 
2 
2 
2@ @ @ @ @6 @ @ @ @ @r   