/usr/lib/python2.7/site-packages/urllib3
NameSizeModeActions
contrib/-0755rm
packages/-0755rm
util/-0755rm
connection.py143460644editdlrm
connection.pyc125970644editdlrm
connection.pyo125970644editdlrm
connectionpool.py350970644editdlrm
connectionpool.pyc268050644editdlrm
connectionpool.pyo268050644editdlrm
exceptions.py66040644editdlrm
exceptions.pyc127880644editdlrm
exceptions.pyo127880644editdlrm
fields.py59430644editdlrm
fields.pyc66970644editdlrm
fields.pyo66970644editdlrm
filepost.py24360644editdlrm
filepost.pyc33670644editdlrm
filepost.pyo33670644editdlrm
poolmanager.py169850644editdlrm
poolmanager.pyc149650644editdlrm
poolmanager.pyo149650644editdlrm
request.py59910644editdlrm
request.pyc60320644editdlrm
request.pyo60320644editdlrm
response.py256090644editdlrm
response.pyc219000644editdlrm
response.pyo219000644editdlrm
_collections.py107460644editdlrm
_collections.pyc129210644editdlrm
_collections.pyo129210644editdlrm
__init__.py27220644editdlrm
__init__.pyc26400644editdlrm
__init__.pyo26400644editdlrm
Edit: /usr/lib/python2.7/site-packages/urllib3/request.pyo (6032B)
ó nf·\c@@sSddlmZddlmZddlmZdgZdefd„ƒYZdS(i(tabsolute_importi(tencode_multipart_formdata(t urlencodetRequestMethodscB@steZdZddddhZd d„Zd d ed d„Zd d d„Zd 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((s3/usr/lib/python2.7/site-packages/urllib3/request.pyt__init__)scK@stdƒ‚dS(NsMClasses extending RequestMethods must implement their own ``urlopen`` method.(tNotImplementedError(R tmethodturltbodyRtencode_multiparttmultipart_boundarytkw((s3/usr/lib/python2.7/site-packages/urllib3/request.pyturlopen,scK@sg|jƒ}||d<||jkrD|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`. t request_urltfieldsRN(tuppert_encode_url_methodstrequest_encode_urltrequest_encode_body(R R R RRt urlopen_kw((s3/usr/lib/python2.7/site-packages/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((s3/usr/lib/python2.7/site-packages/urllib3/request.pyRJs    c K@sÉ|dkr|j}niid6}|r˜d|krFtdƒ‚n|rgt|d|ƒ\} } nt|ƒd} } | |ds