Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RoundTripper ¶
type RoundTripper struct { http.RoundTripper // contains filtered or unexported fields }
RoundTripper implements http.RoundTripper instrumented with recording and playing capabilities
func NewRoundTripper ¶
func NewRoundTripper(options Options, logger *log.Logger) *RoundTripper
NewRoundTripper returns a pointer to RoundTripper struct
func (*RoundTripper) Play ¶
func (rt *RoundTripper) Play(w http.ResponseWriter, r *http.Request)
Play stops recording and starts playing a cassette
func (*RoundTripper) Record ¶
func (rt *RoundTripper) Record(w http.ResponseWriter, r *http.Request)
Record starts recording of a cassette
Click to show internal directories.
Click to hide internal directories.