Documentation
¶
Overview ¶
Package serverpush implements a HTTP/2 Server Push aware http.Handler.
It looks for Link headers in the response with rel=preload and will automatically push each linked resource. If the nopush attribute is included the resource will not be pushed.
It uses a DEFLATE compressed bloom filter to store a probabilistic view of resources that have already been pushed to the client.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EstimateParameters ¶
EstimateParameters estimates requirements for m and k.
Types ¶
type Handler ¶
Handler is an alias to http.Handler for godoc.
type Middleware ¶
Middleware represents a function that wraps an http.Handler.
func RedirectsWrap ¶
func RedirectsWrap(opts *http.PushOptions) Middleware
RedirectsWrap returns a Middleware that calls Redirects.
func Wrapper ¶
func Wrapper(m, k uint, opts *Options) Middleware
Wrapper returns a Middleware that calls New.
Click to show internal directories.
Click to hide internal directories.