%PDF- %PDF-
Direktori : /opt/alt/python27/lib/python2.7/site-packages/requests/packages/urllib3/ |
Current File : //opt/alt/python27/lib/python2.7/site-packages/requests/packages/urllib3/poolmanager.pyc |
� ��Vc @@ sG d d l m Z d d l Z y d d l m Z Wn! e k rS d d l m Z n Xd d l m Z d d l m Z m Z d d l m Z d d l m Z m Z m Z d d l m Z d d l m Z d d l m Z d d d g Z e j e � Z d Z i e d 6e d 6Z d e f d � � YZ d e f d � � YZ d � Z d S( i ( t absolute_importN( t urljoini ( t RecentlyUsedContainer( t HTTPConnectionPoolt HTTPSConnectionPool( t port_by_scheme( t LocationValueErrort MaxRetryErrort ProxySchemeUnknown( t RequestMethods( t parse_url( t Retryt PoolManagert ProxyManagert proxy_from_urlt key_filet cert_filet cert_reqst ca_certst ssl_versiont ca_cert_dirt httpt httpsc B@ sk e Z d Z d Z d d d � Z d � Z d � Z d � Z d � Z d d d � Z d � Z e d � Z RS( s$ Allows for arbitrary requests while transparently keeping track of necessary connection pools for you. :param num_pools: Number of connection pools to cache before discarding the least recently used pool. :param headers: Headers to include with all requests, unless other headers are given explicitly. :param \**connection_pool_kw: Additional parameters are used to create fresh :class:`urllib3.connectionpool.ConnectionPool` instances. Example:: >>> manager = PoolManager(num_pools=2) >>> r = manager.request('GET', 'http://google.com/') >>> r = manager.request('GET', 'http://google.com/mail') >>> r = manager.request('GET', 'http://yahoo.com/') >>> len(manager.pools) 2 i c K@ s>