diff options
| author | Philip Jenvey <pjenvey@underboss.org> | 2009-03-14 01:10:08 +0000 |
|---|---|---|
| committer | Philip Jenvey <pjenvey@underboss.org> | 2009-03-14 01:10:08 +0000 |
| commit | 648aece3201da4faaaddcd36e793cd9c41f4c354 (patch) | |
| tree | 1d1ef6beceea60113825d1ad11f6cdc2c14932d3 /docs/reference.txt | |
| parent | e9d3b02c6ba76cb379bfb1d3093ec78d00c02b67 (diff) | |
| download | webob-648aece3201da4faaaddcd36e793cd9c41f4c354.tar.gz | |
add shorthand for the content_disposition header to Response
Diffstat (limited to 'docs/reference.txt')
| -rw-r--r-- | docs/reference.txt | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/docs/reference.txt b/docs/reference.txt index 1d3c2e0..de1a589 100644 --- a/docs/reference.txt +++ b/docs/reference.txt @@ -707,6 +707,9 @@ Other headers: >>> res.cache_control.max_age = 360 >>> res.cache_control.no_transform = True + >>> # Tell the browser to treat the response as an attachment: + >>> res.content_disposition = 'attachment; filename=foo.xml' + >>> # Used if you had gzipped the body: >>> res.content_encoding = 'gzip' @@ -777,6 +780,7 @@ After setting all these headers, here's the result: Age: 120 Allow: GET, PUT Cache-Control: max-age=360, no-transform + Content-Disposition: attachment; filename=foo.xml Content-Encoding: gzip Content-Language: en Content-Location: http://localhost/foo |
