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
Benoit Benedetti
bec130a563
Recorder: Exporting ResponseRecorder #614
2016-02-20 23:10:04 +01: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
Abiola Ibrahim
168723a026
Added escaped versions of uri, query and path.
2015-12-24 09:00:10 +01:00
Abiola Ibrahim
7f9fa5730b
Rewrite: Use only fragment
, remove frag
.
2015-09-20 18:13:53 +01:00
Abiola Ibrahim
0e039a1868
Rewrite: Use middleware.Replacer.
...
Bug fix for regexps starting with '/'.
2015-09-20 08:49:55 +01:00
Matthew Holt
e94e90b046
Add new docker link, DO link, and enhanced comment
2015-08-05 07:37:51 -06:00
Matthew Holt
04571ff393
NewReplacer takes third argument for empty value string
2015-07-24 10:27:19 -06:00
Nimi Wariboko Jr
a28d5585f5
Export Replacer type
2015-05-03 12:43:50 -07:00
Nimi Wariboko Jr
082ae70d1d
Allow responseRecorder to be nil
2015-05-03 12:38:06 -07:00
Nimi Wariboko Jr
2aa958e058
Update {remote} replacer to use X-Forwarded-For if its provided
2015-05-03 12:37:00 -07:00
Matthew Holt
95dce5cdfc
Latency now available with recorder and replacer
2015-04-23 13:35:56 -06:00
Matthew Holt
09aad777f4
Proper host/port splitting; also log file perms
2015-03-26 23:39:36 -06:00
Matthew Holt
8471c2d9d8
Updated docs; renamed a couple utility files
2015-01-29 22:52:21 -07:00