summaryrefslogtreecommitdiff
path: root/modules/caddyhttp/standard
diff options
context:
space:
mode:
authorMatt Holt <mholt@users.noreply.github.com>2020-07-20 12:28:40 -0600
committerGitHub <noreply@github.com>2020-07-20 12:28:40 -0600
commit6cea1f239d01fc065bc6f4b22d765d89b6db0152 (patch)
tree3ba2664e1beeb1034f400038749845fa7c08e243 /modules/caddyhttp/standard
parent2ae8c119279826ef81223e3b2155a08779f3ee8b (diff)
push: Implement HTTP/2 server push (#3573)
* push: Implement HTTP/2 server push (close #3551) * push: Abstract header ops by embedding into new struct type This will allow us to add more fields to customize headers in push-specific ways in the future. * push: Ensure Link resources are pushed before response is written * Change header name from X-Caddy-Push to Caddy-Push
Diffstat (limited to 'modules/caddyhttp/standard')
-rw-r--r--modules/caddyhttp/standard/imports.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/caddyhttp/standard/imports.go b/modules/caddyhttp/standard/imports.go
index dabec81..0aeef84 100644
--- a/modules/caddyhttp/standard/imports.go
+++ b/modules/caddyhttp/standard/imports.go
@@ -10,6 +10,7 @@ import (
_ "github.com/caddyserver/caddy/v2/modules/caddyhttp/fileserver"
_ "github.com/caddyserver/caddy/v2/modules/caddyhttp/headers"
_ "github.com/caddyserver/caddy/v2/modules/caddyhttp/map"
+ _ "github.com/caddyserver/caddy/v2/modules/caddyhttp/push"
_ "github.com/caddyserver/caddy/v2/modules/caddyhttp/requestbody"
_ "github.com/caddyserver/caddy/v2/modules/caddyhttp/reverseproxy"
_ "github.com/caddyserver/caddy/v2/modules/caddyhttp/reverseproxy/fastcgi"