Skip to content
Myr

docs, cleanup for preparedrequest

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 5f9fecd · Browse files · 1 file+5 added−6 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+5 added−6 removed

  • other:+5 added−6 removed

1 file+5 added−6 removed

modified:requests/models.py+5 added-6 removed
187 unmodified lines
188 self.data = data189 self.params = params190 self.auth = auth191 self.cookies = cookies192 # self.allow_redirects = allow_redirects193 # self.proxies = proxies192 self.hooks = hooks193194 def __repr__(self):195 return '<Request [%s]>' % (self.method)
21 unmodified lines
217 Generated from a :class:`Request <Request>` object or manually.218 """219220 def __init__(self):221 #: HTTP verb to send to the server.222 self.method = None223 #: HTTP URL to send the request to.224 self.url = None225 #: dictionary of HTTP headers.226 self.headers = None227 #: request body to send to the server.228 self.body = None227 self.params = None228 self.auth = None229 self.allow_redirects = None230 self.proxies = None229 #: dictionary of callback hooks, for internal usage.230 self.hooks = default_hooks()231232 def __repr__(self):233 return '<PreparedRequest [%s]>' % (self.method)
353 unmodified lines