← Back
Editing: vary.cpython-311.pyc
� �|�e< � �* � d dl mZ d dlmZ d� Zd� ZdS )� ��wraps��patch_vary_headersc � � � � fd�}|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 �@ �� � t � � � � �fd�� � }|S )Nc �8 �� �| i |��}t |�� � |S )Nr )�args�kwargs�response�func�headerss ���>/usr/lib/python3/dist-packages/django/views/decorators/vary.py� inner_funcz6vary_on_headers.<locals>.decorator.<locals>.inner_func s, �� ��t�T�,�V�,�,�H��x��1�1�1��O� r )r r r s ` �r � decoratorz"vary_on_headers.<locals>.decorator s: ��� � �t��� � � � � � �� � �r � )r r s ` r �vary_on_headersr s$ �� �� � � � � �r c �<