0
Fork 0
mirror of https://github.com/caddyserver/caddy.git synced 2024-12-23 22:27:38 -05:00
caddy/middleware
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
..
basicauth basicauth: fixed 'go vet' printing function value 2016-02-01 11:17:16 +01:00
browse browse: Return HTTP errors on unhandled HTTP methods 2016-04-15 18:22:51 +02:00
errors Revert recent Content-Length-related changes and fix fastcgi return 2016-03-02 11:33:40 -07:00
expvar Add expvar middleware 2016-03-21 21:46:41 -06:00
extensions ext: Fix panic when URL path is empty 2015-11-10 16:04:02 -07:00
fastcgi drop unused len variable 2016-03-26 21:14:22 +00:00
gzip gzipResponseWriter should also be a Flusher 2016-04-11 00:24:26 -06:00
headers Add hostname placeholder. Header uses replacer 2016-04-16 19:06:39 +02:00
inner correct unused assignments 2016-03-26 21:05:19 +00:00
log Add {upstream} placeholder when proxy middleware is used (closes #531) 2016-03-20 21:56:13 -06:00
markdown drop unused md variable 2016-03-26 21:14:54 +00:00
mime Fixup mime middleware to use a map and error on duplicate extensions. 2016-03-15 23:11:19 -07:00
pprof pprof: Only handle if path matches /debug/pprof, add tests 2016-03-19 20:02:05 -06:00
proxy middleware: ResponseRecorder now is an http.Flusher (fixes #677) 2016-04-09 00:17:15 -06:00
redirect Commenting on the need for additional redirect tests 2015-10-01 09:58:07 -07:00
rewrite Fix for #659. 2016-03-17 22:29:58 +01:00
templates Fix typo, clarify readme 2016-03-17 16:42:28 -06:00
websocket Fix go vet 2015-11-15 11:06:50 -07:00
commands.go correct unused assignments 2016-03-26 21:05:19 +00:00
commands_test.go Two quotes next to each other result in one escaped quote; Add Split Example, add/refactor tests for every platform. 2015-10-24 15:33:04 +03:00
context.go Adding some useful utility functions for templates 2016-03-28 20:53:51 -06:00
context_test.go Make test case less dependent on exact error string (#741) 2016-04-11 13:08:30 -06:00
fileserver.go Improve readability and fully comply with RFC7232 2016-04-03 20:14:10 +01:00
fileserver_test.go Improve readability and fully comply with RFC7232 2016-04-03 20:14:10 +01:00
middleware.go Revert recent Content-Length-related changes and fix fastcgi return 2016-03-02 11:33:40 -07:00
middleware_test.go Move common function into existing file 2015-10-29 10:34:47 -06:00
path.go Support for case insensitive paths using CASE_SENSITIVE_PATH environment variable. 2016-03-19 08:45:23 +01:00
path_test.go Support for case insensitive paths using CASE_SENSITIVE_PATH environment variable. 2016-03-19 08:45:23 +01:00
recorder.go http.CloseNotifier implementation for http.ResponseWriter wrapper 2016-04-11 14:10:33 +08:00
recorder_test.go Fix formatting directives in tests 2015-09-04 08:34:58 -07:00
replacer.go Add hostname placeholder. Header uses replacer 2016-04-16 19:06:39 +02:00
replacer_test.go Add hostname placeholder. Header uses replacer 2016-04-16 19:06:39 +02:00
roller.go Address various lint and gocyclo warnings. Fixes #253 2015-10-11 16:28:02 -04:00