From: jbergstroem Date: Tue, 23 Aug 2011 09:37:51 +0000 (+0200) Subject: Typos, nits and some 80w fixes X-Git-Tag: v0.6.4^2~5^2~5^2~17 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=75027f9557e61f2416af1794a269758604a7454c;p=services%2Fpython-requests.git Typos, nits and some 80w fixes --- diff --git a/docs/community/faq.rst b/docs/community/faq.rst index b092195..b6efc78 100644 --- a/docs/community/faq.rst +++ b/docs/community/faq.rst @@ -11,7 +11,7 @@ Encoded Data? Requests automatically decompresses gzip-encoded responses, and does it's best to decodes response content to unicode when possible. -You can get direct access to the raw reasponse (and even the socket), +You can get direct access to the raw response (and even the socket), if needed as well. @@ -22,7 +22,6 @@ Requests allows you to easily override User-Agent strings, along with any other HTTP Header. - Why not Httplib2? ----------------- diff --git a/docs/community/updates.rst b/docs/community/updates.rst index 942ccac..e6e1559 100644 --- a/docs/community/updates.rst +++ b/docs/community/updates.rst @@ -20,7 +20,6 @@ I often tweet about new features and releases of Requests. Follow `@kennethreitz `_ for updates. - Mailing List ------------ diff --git a/docs/user/advanced.rst b/docs/user/advanced.rst index d145da2..ae7827c 100644 --- a/docs/user/advanced.rst +++ b/docs/user/advanced.rst @@ -66,7 +66,7 @@ Available hooks: You can assign a hook function on a per-request basis by passing a ``{hook_name: callback_function}`` dictionary to the ``hooks`` request -paramaeter:: +parameter:: hooks=dict(args=print_url) @@ -134,4 +134,4 @@ To do so, just configure Requests with a stream to write to:: >>> requests.settings.verbose = sys.stderr >>> requests.get('http://httpbin.org/headers') 2011-08-17T03:04:23.380175 GET http://httpbin.org/headers - \ No newline at end of file + diff --git a/docs/user/install.rst b/docs/user/install.rst index cdc6d86..dc4aa62 100644 --- a/docs/user/install.rst +++ b/docs/user/install.rst @@ -3,7 +3,8 @@ Installation ============ -This part of the documentation covers the installation of Requests. The first step to using any software package is getting it properly installed. +This part of the documentation covers the installation of Requests. +The first step to using any software package is getting it properly installed. Distribute & Pip @@ -24,7 +25,8 @@ But, you really `shouldn't do that `_:: +If the Cheeseshop is down, you can also install Requests from Kenneth Reitz's +personal `Cheeseshop mirror `_:: $ pip install -i http://pip.kreitz.co/simple requests @@ -48,6 +50,7 @@ Or, download the `zipball ` section. +Eager to get started? This page gives a good introduction in how to get started +with Requests. This assumes you already have Requests installed. If you do not, +head over to the :ref:`Installation ` section. First, make sure that: @@ -25,7 +27,8 @@ Let's get GitHub's public timeline :: r = requests.get('https://github.com/timeline.json') -Now, we have a :class:`Response` object called ``r``. We can get all the information we need from this. +Now, we have a :class:`Response` object called ``r``. We can get all the +information we need from this. Response Content @@ -90,7 +93,8 @@ interface:: 'content-type': 'application/json; charset=utf-8' } -The dictionary is special, though: it's made just for HTTP headers. According to `RFC 2616 `_, HTTP +The dictionary is special, though: it's made just for HTTP headers. According to +`RFC 2616 `_, HTTP Headers are case-insensitive. So, we can access the headers using any capitalization we want:: @@ -118,7 +122,7 @@ If a response contains some Cookies, you can get quick access to them:: >>> print r.cookies {'requests-is': 'awesome'} -The underlying CookieJar is also available for more advanced handing:: +The underlying CookieJar is also available for more advanced handling:: >>> r.request.cookiejar