R`i# d dl mZ d dlZddlmZ ddlmZ ddlmZ dgZ G d de Zej s7 G d d ej e j Zeej e _ yy) )absolute_importN )encode_multipart_formdata)six) urlencodeRequestMethodsc P e Zd ZdZh dZd dZ d dZddZddZ d dZ y)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. > GETHEADDELETEOPTIONSNc |xs i | _ y N)headers)selfr s /builddir/build/BUILDROOT/alt-python312-pip-23.3.1-3.el8.x86_64/opt/alt/python312/lib/python3.12/site-packages/pip/_vendor/urllib3/request.py__init__zRequestMethods.__init__+ s }" c t d )NzMClasses extending RequestMethods must implement their own ``urlopen`` method.)NotImplementedError)r methodurlbodyr encode_multipartmultipart_boundarykws r urlopenzRequestMethods.urlopen. s " , r c |j }||d<