3 ”Re‚ ã @ s> d dl mZ ddlmZ ddlmZ dgZG dd„ deƒZdS )é )Úabsolute_importé )Úencode_multipart_formdata)Ú urlencodeÚRequestMethodsc @ sN e Zd ZdZddddhZddd„Zdd d„Zddd „Zddd„Zddd„Z dS )r aÔ Convenience mixin for classes who implement a :meth:`urlopen` method, such as :class:`~urllib3.connectionpool.HTTPConnectionPool` and :class:`~urllib3.poolmanager.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. ÚDELETEÚGETÚHEADÚOPTIONSNc C s |pi | _ d S )N)Úheaders)Úselfr © r úŠ/builddir/build/BUILDROOT/alt-python36-pip-20.2.4-5.el8.x86_64/opt/alt/python36/lib/python3.6/site-packages/pip/_vendor/urllib3/request.pyÚ__init__) s zRequestMethods.__init__Tc K s t dƒ‚d S )NzMClasses extending RequestMethods must implement their own ``urlopen`` method.)ÚNotImplementedError)r ÚmethodÚurlÚbodyr Úencode_multipartÚmultipart_boundaryÚkwr r r Úurlopen, s zRequestMethods.urlopenc K sR |j ƒ }||d<