]ʻt d dl mZ d dlZd dlZd dlmZ ddlmZ ddl m Z ddlmZm Z ddlmZ d gZej ej ej eej eef f ej eej eef f f Z G d d ZdS ) )annotationsN) urlencode ) _TYPE_BODY)HTTPHeaderDict)_TYPE_FIELDSencode_multipart_formdata)BaseHTTPResponseRequestMethodsc h e Zd ZdZh dZd d!dZ d"d#dZ d$d%dZ d&d'dZ d"d(dZ 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. > GETHEADDELETEOPTIONSNheaderstyping.Mapping[str, str] | NonereturnNonec |pi | _ d S N)r )selfr s j/builddir/build/BUILD/cloudlinux-venv-1.0.10/venv/lib/python3.11/site-packages/urllib3/_request_methods.py__init__zRequestMethods.__init__3 s }" Tmethodstrurlbody_TYPE_BODY | Noneencode_multipartboolmultipart_boundary str | Nonekw typing.Anyr c t d )NzMClasses extending RequestMethods must implement their own ``urlopen`` method.)NotImplementedError)r r r r r r r" r$ s r urlopenzRequestMethods.urlopen6 s " , r fields_TYPE_FIELDS | Nonejsontyping.Any | None urlopen_kwc | }||t d |x|| j }dt t j | vrd|d<