Header

package
v0.7.10 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HeaderType

type HeaderType struct {
	Next   http.Handler
	Paths  []string
	Name   string // if Name starts with "-" then delete existing header before creating new one.
	Value  string // if Value is "" then do not set header.
	LineNo int
}

func NewHeaderServer

func NewHeaderServer(n http.Handler, p []string, h, v string) *HeaderType

func (*HeaderType) InitializeWithConfigData

func (hdlr *HeaderType) InitializeWithConfigData(next http.Handler, gCfg *cfg.ServerGlobalConfigType, serverName string, pNo, callNo int) (err error)

func (*HeaderType) PreValidate

func (hdlr *HeaderType) PreValidate(gCfg *cfg.ServerGlobalConfigType, cfgData map[string]interface{}, serverName string, pNo, callNo int) (err error)

func (*HeaderType) ServeHTTP

func (hdlr *HeaderType) ServeHTTP(www http.ResponseWriter, req *http.Request)

Jump to

Keyboard shortcuts

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