Versions in this module Expand all Collapse all v1 v1.0.0 Jan 20, 2026 Changes in this version + func DiscardBody(resp *http.Response, readSpeedKbps int) int + func DumpReq(req *http.Request) + func DumpResp(resp *http.Response) + func HashBody(resp *http.Response) string + func HashFile(path string, offset, length int) string + func Purge(t *testing.T, url string) + func RespCallback(cb func(w http.ResponseWriter, r *http.Request)) http.HandlerFunc + func RespCallbackFile(f *MockFile, cb func(w http.ResponseWriter, r *http.Request)) http.HandlerFunc + func RespSimpleFile(f *MockFile) http.HandlerFunc + func SetDump(b bool) + func SetDumpReq(b bool) + func SetLocalAddr(addr string) + func SetManual(b bool) + func SplitFile(path string, offset, length int) io.ReadCloser + func SumMD5(buf []byte) string + func WrongHit(t *testing.T) http.HandlerFunc + type E2E struct + func New(caseUrl string, srcHandler http.HandlerFunc) *E2E + func (e *E2E) Close() + func (e *E2E) Do(rewrite func(r *http.Request)) (*http.Response, error) + type MockFile struct + MD5 string + Path string + Size int + func GenFile(t *testing.T, size int) *MockFile