DumpResponse

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

func IsTextContentType

func IsTextContentType(rw *goftlmux.MidBuffer) (isText bool)

----------------------------------------------------------------------------------------------------------------------------------------------------

Types

type DumpRequestType

type DumpRequestType struct {
	Next         http.Handler
	Paths        []string
	Msg          string
	SaveBodyFlag bool
	SaveTextOnly bool
	FileName     string
	LineNo       int
	// contains filtered or unexported fields
}

func NewDumpRequestServer

func NewDumpRequestServer(n http.Handler, p []string, m string, sb bool, fn string) *DumpRequestType

Parameterized for testing? or just change the test

func (*DumpRequestType) InitializeWithConfigData

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

func (*DumpRequestType) PreValidate

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

func (*DumpRequestType) ServeHTTP

func (hdlr *DumpRequestType) 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