addon

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2021 License: MIT Imports: 10 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CanPrint

func CanPrint(content []byte) bool

Types

type Addon

type Addon interface {
	// HTTP request headers were successfully read. At this point, the body is empty.
	Requestheaders(*flow.Flow)

	// The full HTTP request has been read.
	Request(*flow.Flow)

	// HTTP response headers were successfully read. At this point, the body is empty.
	Responseheaders(*flow.Flow)

	// The full HTTP response has been read.
	Response(*flow.Flow)
}

type Base

type Base struct{}

Base do nothing

func (*Base) Request

func (addon *Base) Request(*flow.Flow)

func (*Base) Requestheaders

func (addon *Base) Requestheaders(*flow.Flow)

func (*Base) Response

func (addon *Base) Response(*flow.Flow)

func (*Base) Responseheaders

func (addon *Base) Responseheaders(*flow.Flow)

type Decoder

type Decoder struct {
	Base
}

func (*Decoder) Response

func (d *Decoder) Response(f *flow.Flow)

type Dumper

type Dumper struct {
	Base

	Out io.Writer
	// contains filtered or unexported fields
}

func NewDumper

func NewDumper(file string, level int) *Dumper

func (*Dumper) Requestheaders

func (d *Dumper) Requestheaders(f *flow.Flow)

type Log

type Log struct {
	Base
}

Log log http record

func (*Log) Requestheaders

func (addon *Log) Requestheaders(f *flow.Flow)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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