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
Peter Hellberg
b5fff09b54
headers: Changed Rule.Url to Rule.Path
...
Updated ServeHTTP comment to indicate that it is
setting headers and not adding them to existing values.
2015-05-09 21:45:28 +02:00
stanislavromanov
a5a90fe6fc
close #64
2015-05-08 17:47:37 +02:00
Matthew Holt
995edf0566
Bringing in latest from master; refactoring under way
2015-05-04 11:02:46 -06:00
Matthew Holt
d33256f1dc
Refactor: Middleware chain uses Handler instead of HandlerFunc
2015-04-02 23:30:54 -06:00
Matthew Holt
a39e71ca26
Refactored headers middleware to return errors
2015-03-28 16:48:43 -06:00
Matthew Holt
ae2a2d5b00
Godoc for middleware packages and server package
2015-01-29 23:52:18 -07:00
Matthew Holt
dcc67863dc
Experimenting to make middleware more independent
2015-01-29 22:46:09 -07:00
Matthew Holt
612d77eaab
Moved Path type around
2015-01-29 22:08:40 -07:00
Matthew Holt
1e4baa53f0
Moved headers middleware into its own package
...
Further trying out spreading out the code outside of the nested functions
2015-01-29 22:05:05 -07:00