add_response_header

package
v0.4.12 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewAddResponseHeaderWithConfig

func NewAddResponseHeaderWithConfig(conf *Config) (http.Handler, error)

Types

type AddResponseHeader

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

func NewAddResponseHeader

func NewAddResponseHeader(key string, value template.Format) *AddResponseHeader

func (*AddResponseHeader) ServeHTTP

func (a *AddResponseHeader) ServeHTTP(rw http.ResponseWriter, r *http.Request)

type Config

type Config struct {
	Key   string
	Value string
}

Jump to

Keyboard shortcuts

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