[Borges-users] Re: Outbound document headers

Eric Hodel drbrain at segment7.net
Sun May 2 22:50:45 EDT 2004


??????? ???????? (slepnev_v at rambler.ru) wrote:

> >You should be able to set headers on a document through:
> >r.rendering_context.document.headers, which is a Hash.
> 
> This isn't really a hash from an app developer's perspective: I just 
> tried setting the value of ['Content-type'] from my app instead of 
> ['Content-Type']. Doesn't work, sure enough - hash keys are 
> case-sensitive. I can think of other examples like this =)

There's a content_type method on Response for that.

> Maybe add something like HtmlRenderer#http_header(k,v) ?

Probably not a bad idea.  What HTTP headers do you usually like to set?

-- 
Eric Hodel - drbrain at segment7.net - http://segment7.net
All messages signed with fingerprint:
FEC2 57F1 D465 EB15 5D6E  7C11 332A 551C 796C 9F04

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://rubyforge.org/pipermail/borges-users/attachments/20040502/51eb7838/attachment.bin


More information about the Borges-users mailing list