via

package
v0.1.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 29, 2015 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Via

type Via struct {
	// contains filtered or unexported fields
}

Via writes the via header

func New

func New(cfg *config.Handler, l *types.Location, next types.RequestHandler) (*Via, error)

New creates and returns a ready to used ServerStatusHandler.

func (*Via) RequestHandle

func (v *Via) RequestHandle(ctx context.Context, w http.ResponseWriter, r *http.Request)

RequestHandle writes the Via header to the http.ResponseWriter

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL