Commit Graph

9 Commits

Author SHA1 Message Date
Neil Schemenauer 660d72d1f2 Trival changes to support Python 3. 2016-03-24 22:25:53 +00:00
Neil Schemenauer f09079828a Implement support for "Transfer-Encoding: chunked".
Use chunked transfer encoding if there is no content length
available and it's supported by the protocol (i.e. HTTP 1.1).
Stream responses without a length can now be compressed.
2013-07-20 14:22:32 -06:00
Neil Schemenauer 4de2a75fb7 Don't auto-set 'Expires' header if it already exists. 2012-01-01 22:20:15 -06:00
Neil Schemenauer 94e589d6fe By default, set Cache-Control in addition to the Expires header.
The Expires header is sufficient for HTTP 1.0 but for HTTP 1.1 we
must add a must-revalidate directive.  Clients and proxies are
allowed to ignore Expires in certain cases and use stale pages (RFC
2616 sections 13.1.5 and 14.9.4).
2010-01-22 13:29:46 -06:00
Neil Schemenauer 157772dcdb Use __contains__ instead of has_key. 2009-09-07 01:34:27 -06:00
Neil Schemenauer 5c39582cf6 Use built-in set type. 2009-09-07 01:34:26 -06:00
Neil Schemenauer 4246ff0bbc Add SESSION_COOKIE_SECURE and SESSION_COOKIE_HTTPONLY.
Based on a suggestion from Emmanuel Dreyfus <manu@netbsd.org>, add
the SESSION_COOKIE_SECURE and SESSION_COOKIE_HTTPONLY options.
Setting them to true will cause the corresponding flag to be set
on the session cookie.
2009-09-07 00:50:13 -06:00
Neil Schemenauer 9aa0cbad18 Silence struck.pack warning.
Silence struct.pack warning by forcing gzipped response CRC to be
a positive integer.
2008-04-05 20:09:39 -06:00
C. Titus Brown a73c2957be Reorganize source
Added some simple WSGI documentation; cleaned up test code a bit.
Added test server status check.  Moved the quixote package into the
quixote/ subdirectory.  Added nose+twill tests under tests/.
2008-04-05 20:09:39 -06:00