added example about creating Requests with cookies

--HG--
extra : convert_revision : svn%3Ab85faa78-f9eb-468e-a121-7cced6da292c%40783
This commit is contained in:
Pablo Hoffman 2009-01-27 12:17:40 +00:00
parent 14ceca98bf
commit 11a9236125
1 changed files with 5 additions and 1 deletions

View File

@ -46,7 +46,11 @@ Request objects
``headers`` is a multi-valued dict containing the headers of this request
``cookies`` is a dict containing the request cookies
``cookies`` is a dict containing the request cookies, and will be preserved
for the rest of the domain crawl, like any browser would do. Example::
request_with_cookies = Request(url="http://www.example.com",
cookies={currency='USD, country='UY'})
``encoding`` is a string with the encoding of this request. This encoding
will be used to percent-encode the URL and to convert the body to str (when