
    Vh                     L    d dl mZ d dlmZ d dlmZ d Z ed      Zde_        y)    )wraps)iscoroutinefunctionpatch_vary_headersc                        fd}|S )a  
    A view decorator that adds the specified headers to the Vary header of the
    response. Usage:

       @vary_on_headers('Cookie', 'Accept-language')
       def index(request):
           ...

    Note that the header names are not case-sensitive.
    c                 X     t               r fd}n fd} t               |      S )Nc                 T   K    | g|i | d {   }t        |       |S 7 wNr   requestargskwargsresponsefuncheaderss       L/home/dcms/DCMS/lib/python3.12/site-packages/django/views/decorators/vary.py_view_wrapperz9vary_on_headers.<locals>.decorator.<locals>._view_wrapper   s3     !%g!?!?!??"8W5 @s   (&(c                 8     | g|i |}t        |       |S r
   r   r   s       r   r   z9vary_on_headers.<locals>.decorator.<locals>._view_wrapper   s&    9$9&9"8W5    )r   r   )r   r   r   s   ` r   	decoratorz"vary_on_headers.<locals>.decorator   s(    t$  
 uT{=))r    )r   r   s   ` r   vary_on_headersr      s    *" r   CookiezA view decorator that adds "Cookie" to the Vary header of a response. This indicates that a page's contents depends on cookies.N)		functoolsr   asgiref.syncr   django.utils.cacher   r   vary_on_cookie__doc__r   r   r   <module>r      s-     , 1@ !*;  r   