Re: Re: [issues] Re: [binarycloud] #125: CreateHTTPResponse class

"alex black" <[email protected]> Sun, 13 Mar 2005 19:15:31 -0800 (PST)
Newsgroups gmane.comp.lib.binarycloud.devel
Message-ID <[email protected]>
>>>We need to add a class:
>>>HTTPResponse
>>>which provides methods for setting http response header values and uses
>>>conf for a set of reasonable defaults.
>>>this class should provide methods to set the following HTTP 1.1 headers:
>>>
>>>Expires
>>>Cache-Control
>>>Status
>
> What exactly should this class accomplish and how should it be used?

This could be integrated into project, but it may make better sense as an
external class.

HTTPResponse should have methods for constructing a proper header -
initially I think status, Expires and Cache-Control are enough, since
those are most used and useful.

Methods:

setExpires()
setCacheControl()
setStatus()

..


_a
_______________________________________________
dev mailing list
dev-PnctHDZWAvB/Cz2I37pSEPZ4XP/[email protected]
http://lists.binarycloud.com/mailman/listinfo/dev