|
Server : Apache System : Linux server.mata-lashes.com 3.10.0-1160.90.1.el7.x86_64 #1 SMP Thu May 4 15:21:22 UTC 2023 x86_64 User : matalashes ( 1004) PHP Version : 8.1.29 Disable Function : NONE Directory : /usr/local/lib/python3.6/site-packages/urllib3/__pycache__/ |
Upload File : |
3
G�KdLO � @ s d dl mZ d dlZd dlZd dlZd dlZd dlZd dlZd dlmZ d dlm
Z ddlm
Z
ddlmZ ddlmZ dd lmZ yd dlZejZW n, eefk
r� dZG d
d� de�ZY nX yeZW n$ ek
r� G dd
� d
e�ZY nX yeZW n& ek
�r G dd� de�ZY nX ddlmZ ddl m!Z! ddl"m#Z#m$Z$m%Z%m&Z& ddl'm(Z(m)Z)m*Z* ddl+m,Z,m-Z-m.Z.m/Z/m0Z0m1Z1 ddl2m3Z3m4Z4 ej5e6�Z7ddd�Z8ej9ddd�Z:ej;d�Z<G dd� dee=�ZG dd� de�Z>dd � Z?d!d"� Z@G d#d$� d$e=�ZAe�seAZ>e>ZBdS )%� )�absolute_importN)�error)�timeout� )�six)�HTTPConnection)�
HTTPException)�create_proxy_ssl_contextc @ s e Zd ZdS )�BaseSSLErrorN)�__name__�
__module__�__qualname__� r r �5/tmp/pip-build-8nxjc3nm/urllib3/urllib3/connection.pyr
s r
c @ s e Zd ZdS )�ConnectionErrorN)r r r
r r r r r ! s r c @ s e Zd ZdS )�BrokenPipeErrorN)r r r
r r r r r * s r )�HTTPHeaderDict)�__version__)�ConnectTimeoutError�NewConnectionError�SubjectAltNameWarning�SystemTimeWarning)�SKIP_HEADER�SKIPPABLE_HEADERS�
connection)�assert_fingerprint�create_urllib3_context�is_ipaddress�resolve_cert_reqs�resolve_ssl_version�ssl_wrap_socket)�CertificateError�match_hostname�P i� )�http�httpsi� z[^-!#$%&'*+.^_`|~0-9a-zA-Z]c s� e Zd ZdZed ZejejdfgZ dZ
dZdd� Ze
dd � �Zejd
d � �Zdd� Zd
d� Zdd� Zdd� Zdd� Zdd� Zd� fdd� Zddd�Z� ZS )r a5
Based on :class:`http.client.HTTPConnection` but provides an extra constructor
backwards-compatibility layer between older and newer Pythons.
Additional keyword parameters are used to configure attributes of the connection.
Accepted parameters include:
- ``strict``: See the documentation on :class:`urllib3.connectionpool.HTTPConnectionPool`
- ``source_address``: Set the source address for the current connection.
- ``socket_options``: Set specific options on the underlying socket. If not specified, then
defaults are loaded from ``HTTPConnection.default_socket_options`` which includes disabling
Nagle's algorithm (sets TCP_NODELAY to 1) unless the connection is behind a proxy.
For example, if you wish to enable TCP Keep Alive in addition to the defaults,
you might pass:
.. code-block:: python
HTTPConnection.default_socket_options + [
(socket.SOL_SOCKET, socket.SO_KEEPALIVE, 1),
]
Or you may want to disable the defaults by passing an empty list (e.g., ``[]``).
r$ r FNc O s` t js|jdd � |jd�| _|jd| j�| _|jdd �| _|jdd �| _t j
| f|�|� d S )N�strict�source_address�socket_options�proxy�proxy_config)r �PY2�pop�getr'