diff options
| author | Kenneth Reitz <me@kennethreitz.com> | 2011-02-25 08:48:09 -0500 |
|---|---|---|
| committer | Kenneth Reitz <me@kennethreitz.com> | 2011-02-25 08:48:09 -0500 |
| commit | 270898e5215f121cbeecedae0bd6c07537692fef (patch) | |
| tree | d572c02936352ba48c325ea53c9ad7aa50dea98d | |
| parent | 897dd3aaa8f8d3856cf7351025192c5bb20aafba (diff) | |
| download | python-requests-270898e5215f121cbeecedae0bd6c07537692fef.tar.gz | |
Readme Updates
| -rw-r--r-- | README.rst | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -16,7 +16,7 @@ Features + Simple Multipart File Uploads + CookieJar Support -- Simple Basic HTTP Authentication +- Simple Authentication + Simple URL + HTTP Auth Registry @@ -38,7 +38,7 @@ HTTPS? Basic Authentication? :: Uh oh, we're not authorized! Let's add authentication. :: - >>> conv_auth = requests.AuthObject('requeststest', 'requeststest') + >>> conv_auth = ('requeststest', 'requeststest') >>> r = requests.get('https://convore.com/api/account/verify.json', auth=conv_auth) >>> r.status_code @@ -100,6 +100,9 @@ If CookieJar object is is passed in (cookies=...), the cookies will be sent with Response.ok (Bool) True if no errors occurred during the request, and the status_code is kosher. + Response.cached + (Bool) True if Response.content is stored within the object. + Response.error (HTTPError) If an HTTPError occurred (e.g. status of 404), Otherwise this is None. |
