Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Handler ¶
type Handler struct { Resources []Resource `json:"resources,omitempty"` Headers *HeaderConfig `json:"headers,omitempty"` // contains filtered or unexported fields }
Handler is a middleware for manipulating the request body.
func (Handler) CaddyModule ¶
func (Handler) CaddyModule() caddy.ModuleInfo
CaddyModule returns the Caddy module information.
type HeaderConfig ¶
HeaderConfig configures headers for synthetic push requests.
type Resource ¶
type Resource struct { // Method is the request method, which must be GET or HEAD. // Default is GET. Method string `json:"method,omitempty"` // Target is the path to the resource being pushed. Target string `json:"target,omitempty"` }
Resource represents a request for a resource to push.
Click to show internal directories.
Click to hide internal directories.