Skip to content
Myr

request docstrings

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 b3fbc81 · Browse files · 1 file+14 added−2 removed
This commit

State

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

Diff stats

1 file+14 added−2 removed

  • other:+14 added−2 removed

1 file+14 added−2 removed

modified:requests/models.py+14 added-2 removed
33 unmodified lines
34log = logging.getLogger(__name__)353637class RequestEncodingMixin(object):3838 @property39 def path_url(self):40 """Build the path URL to use."""41
103 unmodified lines
145 return False146147148class Request(RequestHooksMixin):150 """A user-created :class:`Request <Request>` object."""149 """A user-created :class:`Request <Request>` object.150151 :param method: HTTP method to use.152 :param url: URL to send.153 :param headers: dictionary of headers to send.154 :param files: dictionary of {filename: fileobject} files to multipart upload.155 :param data: the body to attach the request. If a dictionary is provided, form-encoding will take place.156 :param params: dictionary of URL parameters to append to the URL.157 :param auth: Auth handler or (user, pass) tuple.158 :param cookies: dictionary or CookieJar of cookies to attach to this request.159 :param timeout: REMOVE REMOVE.160 :param hooks: dictionary of callback hooks, for internal usage.161 """162 def __init__(self,163 method=None,164 url=None,165 headers=None,
4 unmodified lines
170 cookies=None,171 timeout=None,172 hooks=None):173174175 # Default empty dicts for dict params.176 data = [] if data is None else data177 files = [] if files is None else files178 headers = {} if headers is None else headers
407 unmodified lines