W3C home > Mailing lists > Public > public-test-infra@w3.org > October to December 2013

Re: Simple Proposal for setting HTTP headers

From: James Graham <james@hoppipolla.co.uk>
Date: Tue, 08 Oct 2013 12:44:31 +0100
Message-ID: <5253F01F.6000205@hoppipolla.co.uk>
To: public-test-infra@w3.org
On 08/10/13 09:24, Tobie Langel wrote:
> On Tuesday, October 8, 2013 at 10:20 AM, "Martin J. Dürst" wrote:
>> Maybe I missed something, but was there any conclusion on this thread?
>> Tobie, I'm fine with you choosing a solution, I think the thread overall
>> brought up lots of good arguments, but now, we need a solution; whatever
>> you choose will definitely be better than what we have now (namely nothing).
> Afaik, James is implementing .headers in wptserve and also might add support for .asis.
> .htaccess files won't be supported.

Correct, more or less.

Currently wptserve supports three mechanisms for setting headers:

.asis files where you provide the raw bytes that go on the HTTP response
.headers files where you change/append to the default headers in an 
otherwise static response.
.py files where you have full control over the response, with a range of 
abstraction levels depending on just how fine-grained you want the 
control to be.

As usual, something like the principle of least power applies i.e. if 
you can achieve your goal with a static file + a .headers file that is 
probably the best approach, otherwise if .asis will work use that, 
otherwise use a .py file.
Received on Tuesday, 8 October 2013 11:44:59 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 17:34:10 UTC