immutant

http://immutant.org Note: dev discussion happens in #immutant on FreeNode IRC.
dergutemoritz 2017-04-28T10:41:52.759296Z

Heya, let's say I have a handler which will respond via as-channel and thus send a Transfer-Encoding: chunked header on GET rather than a Content-Length header. Now I want that handler to respond the same way to a HEAD request, of course. However, I can't find a way to achieve that, immutante.web always adds a Content-Length header unless I go through as-channel, too, and don't close the channel right in the :on-open callback. Any hints?

dergutemoritz 2017-04-28T10:50:34.867689Z

That is, keeping the channel open beyond the :on-open callback indeed produces a Transfer-Encoding: chunked header but then I have to have some mechanism that cleans up those dummy channels afterwards which I would like to avoid 🙂