Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Buf = &naked.Buf
View Source
var Log = &naked.Log
Functions ¶
Types ¶
type Dreq ¶
type Dreq struct { Ctx context.Context Cli http.Client Req *http.Request Res *http.Response Buf bytes.Buffer Log bytes.Buffer Mux sync.Mutex NoOutput bool PlugFns []PlugFn PlugFnErr []error }
func New ¶
New will create Dreq object and takes PlugFns. However, before each request, Buf, Req, Log, FnsPre/Post will be reset.
func (*Dreq) AddPlugFnErr ¶
func (*Dreq) ResetPlugFn ¶
func (r *Dreq) ResetPlugFn()
func (*Dreq) ResetPlugFnErrs ¶
func (r *Dreq) ResetPlugFnErrs()
Click to show internal directories.
Click to hide internal directories.