Ë
    ¹2Úi1  ã                   ó>   — d Z ddlmZ ddlmZ ddlZ G d„ de«      Zy)z8Stream files given an URL, i.e. files you want to proxy.é    )ÚHTTPFile)ÚBaseDownloadViewNc                   ó0   — e Zd ZdZdZi Zd„ Zd„ Zd„ Zd„ Z	y)ÚHTTPDownloadViewz(Proxy files that live on remote servers.Ú c                 ó"   — t         j                  S )z‡Return request factory to perform actual HTTP request.

        Default implementation returns :func:`requests.get` callable.

        )ÚrequestsÚget©Úselfs    úU/var/www/html/acx/venv/lib/python3.12/site-packages/django_downloadview/views/http.pyÚget_request_factoryz$HTTPDownloadView.get_request_factory   s   € ô �|‰|Ðó    c                 ó   — | j                   S )zŒReturn keyword arguments for use with :meth:`get_request_factory`.

        Default implementation returns :attr:`request_kwargs`.

        )Úrequest_kwargsr   s    r   Úget_request_kwargsz#HTTPDownloadView.get_request_kwargs   s   € ð ×"Ñ"Ð"r   c                 ó   — | j                   S )zpReturn remote file URL (the one we are proxying).

        Default implementation returns :attr:`url`.

        )Úurlr   s    r   Úget_urlzHTTPDownloadView.get_url!   s   € ð �x‰xˆr   c                 ó�   — t        d| j                  «       | j                  «       | j                  «       dœ| j	                  «       ¤ŽS )z.Return wrapper which has an ``url`` attribute.)Úrequest_factoryÚnamer   © )r   r   Úget_basenamer   r   r   s    r   Úget_filezHTTPDownloadView.get_file)   sH   € äð 
Ø ×4Ñ4Ó6Ø×"Ñ"Ó$Ø—‘“ñ
ð ×%Ñ%Ó'ñ	
ð 	
r   N)
Ú__name__Ú
__module__Ú__qualname__Ú__doc__r   r   r   r   r   r   r   r   r   r   r      s'   „ Ù2ð €Cð €Nòò#òó
r   r   )r   Údjango_downloadview.filesr   Údjango_downloadview.views.baser   r	   r   r   r   r   ú<module>r"      s   ðÙ >Ý .Ý ;ã ô(
Ð'õ (
r   