[ZPT] response.setHeader() best practice

Chris Withers chrisw@nipltd.com
Mon, 08 Apr 2002 14:34:30 +0100


Casey Duncan wrote:
> 
> Perhaps it would be useful to consider implementing a TAL construct for
> manipulating the HTTP header. Perhaps even an implicit metal slot such as:
> 
> <metal:block fill-slot="http_header">

...implicit is bad.

If that happens, I'd prefer to see it come from somewhere, maybe the request?

<metal:block fill-slot="request/http_header">
Content-Type: foo/bar
Some-Other-Header: baz
</metal:block>

cheers,

Chris