LuaRocks.org had a security incident in September 2026. Read the incident report.

host-interpolate-by-header

Plugin for routing to a host based on request header

$ luarocks install host-interpolate-by-header

host-interpolate-by-header is a plugin for Kong and is used to dynamically update hostname of upstream service by interpolating url with values of request headers.

How does it work?
1. The plugin reads all the headers from the incoming request specified in the config as `headers`.
2. It transforms the value of the specified headers as per `operation` in the config.
3. It interpolates hostname of the request with above values before making upstream request.

Versions

1.3.0-14 years ago4,247,566 downloads
1.2.1-15 years ago24,452 downloads
1.2.0-15 years ago216,875 downloads
1.1.6-15 years ago117 downloads
1.1.2-15 years ago49 downloads
1.0.0-1Archived5 years ago25 downloads

Dependencies

lua >= 5.1

Labels

Manifests