Versions in this module Expand all Collapse all v0 v0.0.1 May 4, 2024 Changes in this version + func BuildResponse(code int, payload []byte) *http.Response + func BuildResponseJson(code int, payload interface{}) *http.Response + func BuildResponseString(code int, payload string) *http.Response + func DeleteHeader(resp *http.Response, name string) *http.Response + func HttpClientFromFile(filename string) *http.Client + func HttpClientSaver(saved **http.Request, content string) *http.Client + func HttpClientSaverWithJson(saved **http.Request, jsonData interface{}) *http.Client + func HttpClientWithContent(content string) *http.Client + func HttpClientWithError(err error) *http.Client + func HttpClientWithJson(jsonData interface{}) *http.Client + func MockWithJsonReply(url string, rawData interface{}) *http.Client + func SetHeader(resp *http.Response, name string, value string) *http.Response + type EchoSave struct + func (st *EchoSave) RoundTrip(req *http.Request) (*http.Response, error) + type MockTransport struct + func (transport *MockTransport) DELETE(path string, f RoundTripFunc) + func (transport *MockTransport) GET(path string, f RoundTripFunc) + func (transport *MockTransport) POST(path string, f RoundTripFunc) + func (transport *MockTransport) PUT(path string, f RoundTripFunc) + func (transport *MockTransport) PostOrDelete(isDelete bool, path string, f RoundTripFunc) + func (transport *MockTransport) RoundTrip(req *http.Request) (*http.Response, error) + type RoundTripFunc func(req *http.Request) (*http.Response, error)