caddy: Index | Files

package push

import ""


Package Files

handler.go link_parser.go push.go setup.go

type Middleware Uses

type Middleware struct {
    Next  httpserver.Handler
    Rules []Rule
    Root  http.FileSystem
    // contains filtered or unexported fields

Middleware supports pushing resources to clients

func (Middleware) ServeHTTP Uses

func (h Middleware) ServeHTTP(w http.ResponseWriter, r *http.Request) (int, error)

type Resource Uses

type Resource struct {
    Path   string
    Method string
    Header http.Header

Resource describes resource to be pushed

type Rule Uses

type Rule struct {
    Path      string
    Resources []Resource

Rule describes conditions on which resources will be pushed

Package push imports 6 packages (graph) and is imported by 69 packages. Updated 2019-07-03. Refresh now. Tools for package owners.