How alexashley/kong-plugin-path-prefix works
This is a small Kong plugin that removes a configured shared path prefix from requests before they reach an upstream service. It can also add an X-Forwarded-Prefix header. The README documents these behaviors and the plugin’s configuration; source excerpts were unavailable, so the graph shows only those documented relationships.
Main entry points: handler.lua Path rewrite
Components 5
Kong plugin
- Path rewrite
kong/plugins/path-prefix/handler.lua - Plugin schema
kong/plugins/path-prefix/schema.lua
Other components
- Request client
- Kong
- Upstream service
Connections 4
- Request client → Kong: sends request
- Kong → Path rewrite: dispatches
- Path rewrite → Upstream service: rewrites path
- Path rewrite → Upstream service: adds optional header