What's the easiest way to set the "Expires" HTTP response header when
using WEBrick?
Using the response object passed into do_GET, I think I need to do this.
res['Expires'] = some_string
The question is how to create some_string with a valid value.
For example, what if I what to set it to the current date/time plus one hour.
···
--
R. Mark Volkmann
Partner, Object Computing, Inc.
# Set "Expires" header to this time, properly formatted.
res['Expires'] = t.strftime("%a, %d %b %Y %H:%M:%S GMT")
···
On 7/16/05, Mark Volkmann <r.mark.volkmann@gmail.com> wrote:
What's the easiest way to set the "Expires" HTTP response header when
using WEBrick?
Using the response object passed into do_GET, I think I need to do this.
res['Expires'] = some_string
The question is how to create some_string with a valid value.
For example, what if I what to set it to the current date/time plus one hour.
--
R. Mark Volkmann
Partner, Object Computing, Inc.