[albatross-users] [patch] httpdapp
Matt Goodall
matt at pollenation.net
Sat Aug 16 01:12:03 EST 2003
Attached is my latest patch (diff to 1.10) to the httpdapp module.
The main reason for this change is that I got bored with the response
time of the server for pages with lots of or big graphics so I
implemented support for conditional GET. It seems to make enough of a
difference to warrant the small amount of extra code.
Please note that this is still really only a toy server but it's great
for development and possibly useful as a server for embedded devices.
Changes are as follows:
Since last patch:
* Fixed silly mistake on static_resources default argument to
HTTPServer.__init__.
* Added conditional GET support when sending static_resources
('Last-Modified', 'If-Modified-Since' headers).
* Improved static resource error handling - you actually get a
404 now ;-)
Since 1.10:
* Support for serving static resources directly from the filesystem.
* Cleaned up and simplified the request parsing to make use of
cgiapp.RequestFields (at last!).
* Supports file upload (looks ok after initial tests).
Cheers, Matt
--
Matt Goodall, Pollenation Internet Ltd
w: http://www.pollenationinternet.com
e: matt at pollenation.net
t: +44 (0)113 2252500
-------------- next part --------------
A non-text attachment was scrubbed...
Name: httpdapp.patch
Type: text/x-patch
Size: 7083 bytes
Desc: not available
URL: <http://www.object-craft.com.au/pipermail/albatross-users/attachments/20030815/6ff1ac31/attachment.bin>
More information about the Albatross-users
mailing list