/usr/lib/python2.6/site-packages/urllib3
NameSizeModeActions
contrib/-0755rm
packages/-0755rm
util/-0755rm
connection.py89670644editdlrm
connection.pyc80210644editdlrm
connectionpool.py304140644editdlrm
connectionpool.pyc244930644editdlrm
exceptions.py41090644editdlrm
exceptions.pyc81230644editdlrm
fields.py58330644editdlrm
fields.pyc65580644editdlrm
filepost.py22810644editdlrm
filepost.pyc31820644editdlrm
poolmanager.py94160644editdlrm
poolmanager.pyc98810644editdlrm
request.py59320644editdlrm
request.pyc59990644editdlrm
response.py171490644editdlrm
response.pyc158390644editdlrm
_collections.py105200644editdlrm
_collections.pyc128410644editdlrm
__init__.py18640644editdlrm
__init__.pyc25910644editdlrm
Edit: /usr/lib/python2.6/site-packages/urllib3/request.pyc (5999B)
Ñò ;vVc@smyddklZWn#ej oddklZnXddklZdgZdefd„ƒYZdS(iÿÿÿÿ(t urlencodei(tencode_multipart_formdatatRequestMethodscBszeZdZeddddgƒ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. tDELETEtGETtHEADtOPTIONScCs|ph|_dS(N(theaders(tselfR((s0/tmp/pip-build-cD3xZi/urllib3/urllib3/request.pyt__init__+scKstdƒ‚dS(NsMClasses extending RequestMethods must implement their own ``urlopen`` method.(tNotImplemented(RtmethodturltbodyRtencode_multiparttmultipart_boundarytkw((s0/tmp/pip-build-cD3xZi/urllib3/urllib3/request.pyturlopen.scKs_|iƒ}||ijo |i||d|d||S|i||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(RR R RRt urlopen_kw((s0/tmp/pip-build-cD3xZi/urllib3/urllib3/request.pytrequest4s cKsf|djo |i}nh|d6}|i|ƒ|o|dt|ƒ7}n|i|||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(RR R RRRtextra_kw((s0/tmp/pip-build-cD3xZi/urllib3/urllib3/request.pyRJs    c KsÑ|djo |i}nhhd6}|ord|jotdƒ‚n|ot|d|ƒ\} } nt|ƒd} } | |ds