-- import "github.com/bigdrum/fakeroundtripper"
type FakeRoundTripper struct {
}FakeRoundTripper for unitests.
func New() *FakeRoundTripperNew creates a new FakeRoundTripper.
func (f *FakeRoundTripper) BindContent(url string, content string)BindContent binds the content of a string to a URL.
func (f *FakeRoundTripper) BindFile(url string, testDataFileName string)BindFile binds the content of a file to a URL.
func (f *FakeRoundTripper) BindHandler(prefix string, handler http.Handler)BindHandler binds a handler to a URL.
func (f *FakeRoundTripper) RoundTrip(req *http.Request) (*http.Response, error)RoundTrip implementation.