summaryrefslogtreecommitdiff
path: root/tests/test_httpheaders.py
Commit message (Collapse)AuthorAgeFilesLines
* Fix http://trac.pythonpaste.org/pythonpaste/ticket/398 -- properly reject ↵Ian Bicking2010-09-011-0/+10
| | | | dates that have out-of-range values
* - changed all HTTPHeader sub-classes to have a _ prefix, sincecce2005-12-301-59/+59
| | | | | | they are quite private and should (usually) be singeltons. - updated all instances to use UPPPER_CASE format, like CONTENT_TYPE - propigated these changes to tests and to fileapp.py
* - added Range.parse to httpheaderscce2005-12-291-5/+21
| | | | | | | | | - renamed Expires.time to Expires.parse for consistency - updated FileApp/DataApp to return 206 on Partial Content - all HttpHeader(environ) return strings (empty string when not found) so that checks like 'if header-part in HttpHeader(collection)' works without having to check for None - updated FileApp to use Range header (instead of having its own copy)
* - make ContentType and ContentLength pickup CGI environment variable ifcce2005-12-291-0/+10
| | | | | the corresponding header is not found (hopefully this redundance can be removed from WSGI)
* - upgraded fileapp.py to use httpheaderscce2005-12-281-6/+6
| | | | | | | - fixed bug in content-disposition - fixed bug in cache-control next-up: Content-Range, Range headers
* - added Content-Disposition and Cache-Control headerscce2005-12-281-8/+54
| | | | | - added DateHeader base class for Expires, If-Modified-Since, etc. - added apply method for updates /w side-effects
* - overhauled description of httpheaders modulecce2005-12-271-4/+33
| | | | | - added delete and update methods - added regression tests
* major re-work of httpheaderscce2005-12-271-24/+21
|
* (no commit message)cce2005-12-261-1/+1
|
* - added normalize_headers to paste.httpheaders which sorts a setcce2005-12-261-0/+20
| | | | | | | | | | of outgoing headers and capitalizes them to exactly match the RFC for extremely dumb user agents (which exist... unfortunately) that don't do case-insensitive matches and assume Camel-Case - added ResponseHeaderWrapper to use python properties to access headers which don't use multiple-entities (like Set-Cookie) - updated comment to header_value to explain why , separator works in most cases (but not all)
* - making HTTPHeader not be a string object so that it isn'tcce2005-12-261-2/+1
| | | | | | | | | accidently used as a key in an WSGI or header tuple - distinguishing between multi-value (but single-line) and multi-entry headers such as WWW-Authenticate and Set-Cookie as discussed on the Web-Sig - removed 'dict' like stuff from environ wrapper so that it isn't accidently used as an environ replacement
* Adding httpheaders, which is similar to httpexceptions only that itcce2005-12-251-0/+32
contains a full set of headers /w their corresponding category, version, and an indicator if they are single value or multi-value