Documentation ¶
Index ¶
- Constants
- func WrapResponseBodyIfNeeded(res *http.Response, req *http.Request, dump *Dumper)
- type Dumper
- func (d *Dumper) Clone() *Dumper
- func (d *Dumper) Dump(p []byte)
- func (d *Dumper) SetOptions(opt Options)
- func (d *Dumper) Start()
- func (d *Dumper) Stop()
- func (d *Dumper) WrapReadCloser(rc io.ReadCloser) io.ReadCloser
- func (d *Dumper) WrapWriteCloser(rc io.WriteCloser) io.WriteCloser
- func (d *Dumper) WrapWriter(w io.Writer) io.Writer
- type Dumpers
- type Options
Constants ¶
View Source
const DumperKey dumperKeyType = iota
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Dumper ¶
type Dumper struct { Options // contains filtered or unexported fields }
Dumper is the dump tool.
func (*Dumper) SetOptions ¶
func (*Dumper) WrapReadCloser ¶
func (d *Dumper) WrapReadCloser(rc io.ReadCloser) io.ReadCloser
func (*Dumper) WrapWriteCloser ¶
func (d *Dumper) WrapWriteCloser(rc io.WriteCloser) io.WriteCloser
type Dumpers ¶
type Dumpers []*Dumper
Dumpers is an array of Dumpper
func GetResponseHeaderDumpers ¶
GetResponseHeaderDumpers return Dumpers which need dump response header.
func (Dumpers) ShouldDump ¶
ShouldDump is true if Dumper is not empty.
Click to show internal directories.
Click to hide internal directories.