edit_response_header

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewEditResponseHeaderWithConfig

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

Types

type Config

type Config struct {
	Del []string `json:",omitempty"`
	Set []Pair   `json:",omitempty"`
	Add []Pair   `json:",omitempty"`
}

type EditResponseHeader

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

func NewEditResponseHeader

func NewEditResponseHeader(del []string, set []Pair, add []Pair) (*EditResponseHeader, error)

func (*EditResponseHeader) ServeHTTP

func (e *EditResponseHeader) ServeHTTP(rw http.ResponseWriter, r *http.Request)

type Pair

type Pair struct {
	Key   string
	Value string
}

Jump to

Keyboard shortcuts

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