From: Kenneth Reitz Date: Wed, 17 Aug 2011 04:08:39 +0000 (-0400) Subject: whitespace X-Git-Tag: v0.6.0~37 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=17d3e1d498cd8afade26a31ec313739a71550eed;p=services%2Fpython-requests.git whitespace --- diff --git a/requests/models.py b/requests/models.py index 2a69925..90b356f 100644 --- a/requests/models.py +++ b/requests/models.py @@ -44,23 +44,31 @@ class Request(object): #: Request URL. self.url = url + #: Dictonary of HTTP Headers to attach to the :class:`Request `. self.headers = headers + #: Dictionary of files to multipart upload (``{filename: content}``). self.files = files + #: HTTP Method to use. Available: GET, HEAD, PUT, POST, DELETE. self.method = method + #: Dictionary or byte of request body data to attach to the #: :class:`Request `. self.data = None + #: Dictionary or byte of querystring data to attach to the #: :class:`Request `. self.params = None + #: True if :class:`Request ` is part of a redirect chain (disables history #: and HTTPError storage). self.redirect = redirect + #: Set to True if full redirects are allowed (e.g. re-POST-ing of data at new ``Location``) self.allow_redirects = allow_redirects + # Dictionary mapping protocol to the URL of the proxy (e.g. {'http': 'foo.bar:3128'}) self.proxies = proxies @@ -75,10 +83,13 @@ class Request(object): auth = AuthObject(*auth) if not auth: auth = auth_manager.get_auth(self.url) + #: :class:`AuthObject` to attach to :class:`Request `. self.auth = auth + #: CookieJar to attach to :class:`Request `. self.cookiejar = cookiejar + #: True if Request has been sent. self.sent = False