0
Fork 0
mirror of https://github.com/caddyserver/caddy.git synced 2024-12-23 22:27:38 -05:00
caddy/caddyhttp
Matthew Holt a798e0c951 Refactor how caddy.Context is stored and used
- Server types no longer need to store their own contexts; they are
  stored on the caddy.Instance, which means each context will be
  properly GC'ed when the instance is stopped. Server types should use
  type assertions to convert from caddy.Context to their concrete
  context type when they need to use it.
- Pass the entire context into httpserver.GetConfig instead of only the
  Key field.
- caddy.NewTestController now requires a server type string so it can
  create a controller with the proper concrete context associated with
  that server type.

Tests still need more attention so that we can test the proper creation
of startup functions, etc.
2016-06-20 11:59:23 -06:00
..
basicauth Refactor how caddy.Context is stored and used 2016-06-20 11:59:23 -06:00
bind Refactor how caddy.Context is stored and used 2016-06-20 11:59:23 -06:00
browse Refactor how caddy.Context is stored and used 2016-06-20 11:59:23 -06:00
errors Refactor how caddy.Context is stored and used 2016-06-20 11:59:23 -06:00
expvar Refactor how caddy.Context is stored and used 2016-06-20 11:59:23 -06:00
extensions Refactor how caddy.Context is stored and used 2016-06-20 11:59:23 -06:00
fastcgi Refactor how caddy.Context is stored and used 2016-06-20 11:59:23 -06:00
gzip Refactor how caddy.Context is stored and used 2016-06-20 11:59:23 -06:00
header Refactor how caddy.Context is stored and used 2016-06-20 11:59:23 -06:00
httpserver Refactor how caddy.Context is stored and used 2016-06-20 11:59:23 -06:00
internalsrv Refactor how caddy.Context is stored and used 2016-06-20 11:59:23 -06:00
log Refactor how caddy.Context is stored and used 2016-06-20 11:59:23 -06:00
markdown Refactor how caddy.Context is stored and used 2016-06-20 11:59:23 -06:00
mime Refactor how caddy.Context is stored and used 2016-06-20 11:59:23 -06:00
pprof Refactor how caddy.Context is stored and used 2016-06-20 11:59:23 -06:00
proxy Refactor how caddy.Context is stored and used 2016-06-20 11:59:23 -06:00
redirect Refactor how caddy.Context is stored and used 2016-06-20 11:59:23 -06:00
rewrite Refactor how caddy.Context is stored and used 2016-06-20 11:59:23 -06:00
root Refactor how caddy.Context is stored and used 2016-06-20 11:59:23 -06:00
staticfiles Rewrote Caddy from the ground up; initial commit of 0.9 branch 2016-06-04 17:00:29 -06:00
templates Refactor how caddy.Context is stored and used 2016-06-20 11:59:23 -06:00
websocket Refactor how caddy.Context is stored and used 2016-06-20 11:59:23 -06:00
caddyhttp.go Migrate remaining middleware packages 2016-06-05 22:39:23 -06:00