package dump
Import Path
github.com/imroc/req/v3/internal/dump (on go.dev)
Dependency Relation
imports 3 packages, and imported by 4 packages
Involved Source Files
dump.go
Package-Level Type Names (total 3)
Dumper is the dump tool.
Options Options
( Dumper) Async() bool
(*Dumper) Clone() *Dumper
(*Dumper) DumpDefault(p []byte)
(*Dumper) DumpRequestBody(p []byte)
(*Dumper) DumpRequestHeader(p []byte)
(*Dumper) DumpResponseBody(p []byte)
(*Dumper) DumpResponseHeader(p []byte)
(*Dumper) DumpTo(p []byte, output io.Writer)
( Dumper) Output() io.Writer
( Dumper) RequestBody() bool
( Dumper) RequestBodyOutput() io.Writer
( Dumper) RequestHeader() bool
( Dumper) RequestHeaderOutput() io.Writer
( Dumper) ResponseBody() bool
( Dumper) ResponseBodyOutput() io.Writer
( Dumper) ResponseHeader() bool
( Dumper) ResponseHeaderOutput() io.Writer
(*Dumper) SetOptions(opt Options)
(*Dumper) Start()
(*Dumper) Stop()
(*Dumper) WrapRequestBodyWriteCloser(rc io.WriteCloser) io.WriteCloser
(*Dumper) WrapRequestBodyWriter(w io.Writer) io.Writer
(*Dumper) WrapRequestHeaderWriter(w io.Writer) io.Writer
(*Dumper) WrapResponseBodyReadCloser(rc io.ReadCloser) io.ReadCloser
func GetDumpers(ctx context.Context, dump *Dumper) []*Dumper
func NewDumper(opt Options) *Dumper
func (*Dumper).Clone() *Dumper
func GetDumpers(ctx context.Context, dump *Dumper) []*Dumper
func GetResponseHeaderDumpers(ctx context.Context, dump *Dumper) Dumpers
func WrapResponseBodyIfNeeded(res *http.Response, req *http.Request, dump *Dumper)
Dumpers is an array of Dumpper
( Dumpers) DumpResponseHeader(p []byte)
ShouldDump is true if Dumper is not empty.
func GetResponseHeaderDumpers(ctx context.Context, dump *Dumper) Dumpers
Options controls the dump behavior.
( Options) Async() bool
( Options) Clone() Options
( Options) Output() io.Writer
( Options) RequestBody() bool
( Options) RequestBodyOutput() io.Writer
( Options) RequestHeader() bool
( Options) RequestHeaderOutput() io.Writer
( Options) ResponseBody() bool
( Options) ResponseBodyOutput() io.Writer
( Options) ResponseHeader() bool
( Options) ResponseHeaderOutput() io.Writer
func Options.Clone() Options
func NewDumper(opt Options) *Dumper
func (*Dumper).SetOptions(opt Options)
Package-Level Functions (total 4)
func GetDumpers(ctx context.Context, dump *Dumper) []*Dumper
GetResponseHeaderDumpers return Dumpers which need dump response header.
NewDumper create a new Dumper.
Package-Level Constants (only one)
const DumperKey dumperKeyType = 0
![]() |
The pages are generated with Golds v0.8.7. (GOOS=linux GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds. |