Versions in this module Expand all Collapse all v0 v0.1.1 Sep 5, 2023 Changes in this version + const DumperKey + func WrapResponseBodyIfNeeded(res *http.Response, req *http.Request, dump *Dumper) + type Dumper struct + func GetDumpers(ctx context.Context, dump *Dumper) []*Dumper + func NewDumper(opt Options) *Dumper + func (d *Dumper) Clone() *Dumper + func (d *Dumper) DumpDefault(p []byte) + func (d *Dumper) DumpRequestBody(p []byte) + func (d *Dumper) DumpRequestHeader(p []byte) + func (d *Dumper) DumpResponseBody(p []byte) + func (d *Dumper) DumpResponseHeader(p []byte) + func (d *Dumper) DumpTo(p []byte, output io.Writer) + func (d *Dumper) SetOptions(opt Options) + func (d *Dumper) Start() + func (d *Dumper) Stop() + func (d *Dumper) WrapRequestBodyWriteCloser(rc io.WriteCloser) io.WriteCloser + func (d *Dumper) WrapRequestBodyWriter(w io.Writer) io.Writer + func (d *Dumper) WrapRequestHeaderWriter(w io.Writer) io.Writer + func (d *Dumper) WrapResponseBodyReadCloser(rc io.ReadCloser) io.ReadCloser + type Dumpers []*Dumper + func GetResponseHeaderDumpers(ctx context.Context, dump *Dumper) Dumpers + func (ds Dumpers) DumpResponseHeader(p []byte) + func (ds Dumpers) ShouldDump() bool + type Options interface + Async func() bool + Clone func() Options + Output func() io.Writer + RequestBody func() bool + RequestBodyOutput func() io.Writer + RequestHeader func() bool + RequestHeaderOutput func() io.Writer + ResponseBody func() bool + ResponseBodyOutput func() io.Writer + ResponseHeader func() bool + ResponseHeaderOutput func() io.Writer