Skip to content
Myr

fix for #160

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 c8914bd · Browse files · 2 files+3 added−3 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+3 added−3 removed

  • other:+3 added−3 removed

2 files+3 added−3 removed

modified:requests/api.py+2 added-3 removed
15 unmodified lines
16from .status_codes import codes17from .hooks import dispatch_hook18from .utils import cookiejar_from_dict, header_expand1920from urlparse import urlparse2021__all__ = ('request', 'get', 'head', 'post', 'patch', 'put', 'delete')222324def request(method, url,25 params=None, data=None, headers=None, cookies=None, files=None, auth=None,26 timeout=None, allow_redirects=False, proxies=None, hooks=None):27
59 unmodified lines
87 return r.response888990def get(url, **kwargs):9191 """Sends a GET request. Returns :class:`Response` object.9293 :param url: URL for the new :class:`Request` object.94 :param **kwargs: Optional arguments that ``request`` takes.
47 unmodified lines
142 :param data: (optional) Dictionary or bytes to send in the body of the :class:`Request`.143 :param **kwargs: Optional arguments that ``request`` takes.144 """145147 return request('patch', url, **kwargs)146 return request('patch', url, data=data, **kwargs)147148149def delete(url, **kwargs):150 """Sends a DELETE request. Returns :class:`Response` object.
6 unmodified lines
modified:AUTHORS+1 added
42 unmodified lines
43- Rick Mak44- Johan Bergström45- Josselin Jacquard46- Mike Waldner47- Serge Domkowski