William Bezuidenhout
a762bec06d
Add hostname placeholder. Header uses replacer
...
On matched header rules, replacer is used to replace any placeholders
defined in header rules iex. X-Backend {hostname} where {hostname} will
be replaced by the hostname key present in the replacer
hostname key added to replacer. The value is determined by the output of
`os.Hostname()`
2016-04-16 19:06:39 +02:00
Matthew Holt
f23d8cb37f
Add {upstream} placeholder when proxy middleware is used ( closes #531 )
...
Middlewares can now make their own placeholders that may be useful in
logging, on a per-request basis. Proxy is the first one to do this.
2016-03-20 21:56:13 -06:00
Matthew Holt
b6326d402d
Fix for case-insensitive header replacements ( #476 )
2015-12-31 12:31:30 -07:00
Matthew Holt
e2a3ec4c3d
Replacer supports case-insensitive header placeholders ( fixes #476 )
2015-12-31 12:12:16 -07:00
Abiola Ibrahim
7dadcd5834
Add ability to set custom values.
2015-12-30 20:42:03 +01:00
Zac Bergquist
f9bc74626d
Address various lint and gocyclo warnings. Fixes #253
2015-10-11 16:28:02 -04:00
Karthic Rao
ed4148f20e
Complete test coverage for replacer for Go
2015-09-10 10:28:13 +05:30
Karthic Rao
444f9e40d5
initial test for replacer
2015-08-27 23:36:32 +05:30