Skip to content

HTTP Headers Management

Paolo Venturi edited this page May 22, 2019 · 15 revisions

Managing HTTP Headers

Carapace allows you to customize requests (from clients to Carapace, before server forwarding) and responses (from backends to Carapace, before client forwarding) by adding, removing or setting HTTP Headers.

HTTP Response Headers

In Carapacee configuration you can specify which headers to manage for HTTP Responses as follow:

header.i.id = HEADER_ID id to reference in configuration
header.i.name = HEADER_NAME standard header name
header.i.value = HEADER_VALUE value of the header
header.i.mode = set|add|remove to override (set), append (add) the header value or remove it

Once done, in order to apply defined headers to HTTP Responses you only need to reference them in the actions with:

action.i.headers = HEADER_ID1,HEADER_ID2 ids of configured headers to add in all responses for this action.

HTTP Request Headers

Clone this wiki locally