Forum

Add support for custom header response in UrlToolkit

Milouse
3 December 2018, 14:30
Hi,

There was a similar question some times ago (https://www.hiawatha-webserver.org/forum/topic/1573/) and I would like to open it again. I'm in an environment without PHP or anything else. My current hiawatha config is just a reverse proxy toward some backend. I would like to filter the reverse proxy call by directly reject some requests by something else than a 403.

Would it be possible to add an optional status code to the Return directive (or the exit one ?). If this optional status code is present, it will be send as this, without any further processing?

What do you think about it?
Hugo Leisink
9 December 2018, 15:02
Adding headers to the backend server's response requires more time and work than I'm willing to put in Hiawatha at the moment. Sorry.
This topic has been closed.