I need autodoc.
authorKenneth Reitz <me@kennethreitz.com>
Tue, 15 Feb 2011 14:58:02 +0000 (09:58 -0500)
committerKenneth Reitz <me@kennethreitz.com>
Tue, 15 Feb 2011 14:58:02 +0000 (09:58 -0500)
README.rst

index fab341ddb24b56e9f8fa68c330ef60cccb95093f..325c69ca659b0ec05f728ada94faeb04509cad35 100644 (file)
@@ -85,25 +85,25 @@ If CookieJar object is is passed in (cookies=...), the cookies will be sent with
 
 **Responses:**
     
-    Request.status_code:
+    Response.status_code:
          (Integer) Received HTTP Status Code Response
 
-    Request.headers:
+    Response.headers:
         (Dictionary) Received HTTP Response Headers
 
-    Request.content:
+    Response.content:
         (Bytes) Received Content
 
-    Request.url
+    Response.url
         (String) URL of response. Useful for detecting redirects. 
         
-    Request.ok
-        True if no errors occurred during the request, and the status_code is kosher.
+    Response.ok
+        (Bool) True if no errors occurred during the request, and the status_code is kosher.
     
-    Request.error
+    Response.error
         (HTTPError) If an HTTPError occurred (e.g. status of 404), Otherwise this is None.
     
-    Request.raise_for_status()
+    Response.raise_for_status()
         Raises HTTPError if a request is not kosher.