/usr/lib/python2.7/site-packages/pip/_vendor/urllib3
NameSizeModeActions
contrib/-0755rm
packages/-0755rm
util/-0755rm
connection.py130030644editdlrm
connection.pyc108560644editdlrm
connection.pyo108560644editdlrm
connectionpool.py353580644editdlrm
connectionpool.pyc272410644editdlrm
connectionpool.pyo272410644editdlrm
exceptions.py66030644editdlrm
exceptions.pyc133390644editdlrm
exceptions.pyo133390644editdlrm
fields.py59430644editdlrm
fields.pyc68290644editdlrm
fields.pyo68290644editdlrm
filepost.py23210644editdlrm
filepost.pyc33270644editdlrm
filepost.pyo33270644editdlrm
poolmanager.py168200644editdlrm
poolmanager.pyc150530644editdlrm
poolmanager.pyo150530644editdlrm
request.py59460644editdlrm
request.pyc60980644editdlrm
request.pyo60980644editdlrm
response.py229030644editdlrm
response.pyc195880644editdlrm
response.pyo195880644editdlrm
_collections.py102040644editdlrm
_collections.pyc131950644editdlrm
_collections.pyo131950644editdlrm
__init__.py28530644editdlrm
__init__.pyc30970644editdlrm
__init__.pyo30970644editdlrm
Edit: /usr/lib/python2.7/site-packages/pip/_vendor/urllib3/request.pyc (6098B)
ó •abc@@sSddlmZddlmZddlmZdgZdefd„ƒYZdS(i(tabsolute_importi(tencode_multipart_formdata(t urlencodetRequestMethodscB@szeZdZeddddgƒZd d„Zd d ed d„Zd d d„Z d d d„Z d d ed d „Z RS( sÔ 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. tDELETEtGETtHEADtOPTIONScC@s|p i|_dS(N(theaders(tselfR((s?/usr/lib/python2.7/site-packages/pip/_vendor/urllib3/request.pyt__init__)scK@stdƒ‚dS(NsMClasses extending RequestMethods must implement their own ``urlopen`` method.(tNotImplemented(R tmethodturltbodyRtencode_multiparttmultipart_boundarytkw((s?/usr/lib/python2.7/site-packages/pip/_vendor/urllib3/request.pyturlopen,scK@s]|jƒ}||jkr:|j||d|d||S|j||d|d||SdS(sá Make a request using :meth:`urlopen` with the appropriate encoding of ``fields`` based on the ``method`` used. This is a convenience method that requires the least amount of manual effort. It can be used in most situations, while still having the option to drop down to more specific methods when necessary, such as :meth:`request_encode_url`, :meth:`request_encode_body`, or even the lowest level :meth:`urlopen`. tfieldsRN(tuppert_encode_url_methodstrequest_encode_urltrequest_encode_body(R R R RRt urlopen_kw((s?/usr/lib/python2.7/site-packages/pip/_vendor/urllib3/request.pytrequest2s cK@sb|dkr|j}ni|d6}|j|ƒ|rO|dt|ƒ7}n|j|||S(s¦ Make a request using :meth:`urlopen` with the ``fields`` encoded in the url. This is useful for request methods like GET, HEAD, DELETE, etc. Rt?N(tNoneRtupdateRR(R R R RRRtextra_kw((s?/usr/lib/python2.7/site-packages/pip/_vendor/urllib3/request.pyRHs    c K@sÉ|dkr|j}niid6}|r˜d|krFtdƒ‚n|rgt|d|ƒ\} } nt|ƒd} } | |ds