Skip to content
Myr

api docs

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Kenneth Reitz · committed by Kenneth Reitz · parent fcccc82 · Browse files · 2 files+10 added−4 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

2 files+10 added−4 removed

  • other:+10 added−4 removed

2 files+10 added−4 removed

modified:requests/api.py+6 added
30 unmodified lines
31 :param proxies: (optional) Dictionary mapping protocol to the URL of the proxy.32 :param verify: (optional) if ``True``, the SSL cert will be verified. A CA_BUNDLE path can also be provided.33 :param stream: (optional) if ``False``, the response content will be immediately downloaded.34 :param cert: (optional) if String, path to ssl client cert file (.pem). If Tuple, ('cert', 'key') pair.3536 Usage::3738 >>> import requests39 >>> req = requests.request('GET', 'http://httpbin.org/get')40 <Response [200]>41 """4243 session = sessions.Session()44 return session.request(method=method, url=url, **kwargs)
75 unmodified lines
modified:requests/models.py+4 added-4 removed
146 unmodified lines
147148class Request(RequestHooksMixin):149 """A user-created :class:`Request <Request>` object.150151 Used to prepare a :class:`PreparedRequest <PreparedRequest>`, which is sent to the server.152153 :param method: HTTP method to use.154 :param url: URL to send.155 :param headers: dictionary of headers to send.156 :param files: dictionary of {filename: fileobject} files to multipart upload.
225 unmodified lines
382 self.headers['Cookie'] = cookie_header383384385class Response(object):384 """The core :class:`Response <Response>` object. All385 :class:`Request <Request>` objects contain a386 :class:`response <Response>` attribute, which is an instance387 of this class.386 """The :class:`Response <Response>` object, which contains a387 server's response to an HTTP request.388 """389390 def __init__(self):391 super(Response, self).__init__()
215 unmodified lines