mirror of
https://github.com/caddyserver/caddy.git
synced 2026-06-30 22:02:18 +00:00
HTTP/2 push support (golang 1.8) (#1215)
* WIP * HTTP2/Push for golang 1.8 * Push plugin completed for review * Correct build tag * Move push plugin position * Add build tags to tests * Gofmt that code * Add header/method validations * Load push plugin * Fixes for wrapping writers * Push after delivering file * Fixes, review changes * Remove build tags, support new syntax * Fix spelling * gofmt -s -w . * Gogland time * Add interface guards * gofmt * After review fixes
This commit is contained in:
parent
579007822f
commit
cdf7cf5c3f
12 changed files with 882 additions and 12 deletions
|
|
@ -45,6 +45,7 @@ func NewServer(addr string, group []*SiteConfig) (*Server, error) {
|
|||
sites: group,
|
||||
connTimeout: GracefulTimeout,
|
||||
}
|
||||
|
||||
s.Server.Handler = s // this is weird, but whatever
|
||||
|
||||
// Disable HTTP/2 if desired
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue