Hello,

I am looking to use mongrel2 with SSL.  I would like to add a field to 
the headers sent to the handlers notifying them whether or not the 
connection is using SSL.  My reason for doing this is for redirects the 
handler needs to know whether to use http or https when building the url.

Is this best done using a filter or is there an easier way to notify a 
handler if redirects should be prefixed using https?  It could be that 
one of the header fields already contains this information and I 
overlooked it.

If a filter is a good choice, then can a header be added in a filter 
using something like hash_alloc_insert(req->headers, "USING_SSL", "true")?

Also, for which state or states should the header be added (that is, for 
HTTP_REQ only or for additional states)?

Regards,

Jeff Van Voorst

Reply via email to