MCPcopy Index your code
hub / github.com/imroc/req / Options

Interface Options

internal/dump/dump.go:10–22  ·  view source on GitHub ↗

Options controls the dump behavior.

Source from the content-addressed store, hash-verified

8
9// Options controls the dump behavior.
10type Options interface {
11 Output() io.Writer
12 RequestHeaderOutput() io.Writer
13 RequestBodyOutput() io.Writer
14 ResponseHeaderOutput() io.Writer
15 ResponseBodyOutput() io.Writer
16 RequestHeader() bool
17 RequestBody() bool
18 ResponseHeader() bool
19 ResponseBody() bool
20 Async() bool
21 Clone() Options
22}
23
24func (d *Dumper) WrapResponseBodyReadCloser(rc io.ReadCloser) io.ReadCloser {
25 return &dumpResponseBodyReadCloser{rc, d}

Callers 25

DumpDefaultMethod · 0.65
sendRequestBodyMethod · 0.65
DumpRequestHeaderMethod · 0.65
DumpRequestBodyMethod · 0.65
sendRequestBodyMethod · 0.65
DumpResponseHeaderMethod · 0.65
DumpResponseBodyMethod · 0.65
writeRequestMethod · 0.65
TestDumperCloneFunction · 0.65
encodeHeadersMethod · 0.65
sendRequestHeaderMethod · 0.65
writeBodyMethod · 0.65

Implementers 2

testOptionsinternal/dump/dump_test.go

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…