Versions in this module Expand all Collapse all v1 v1.1.10 Dec 12, 2023 Changes in this version + type Request struct + Header http.Header + Method string + type Response struct + Content []byte + ContentEncoding string + Etag string + LastModified *time.Time + type Stat struct + AllRequests int + CachedRequests int + Requests []Request + type TestServer struct + func NewTestServer(routes map[string]Response) *TestServer + func (s *TestServer) ServeHTTP(w http.ResponseWriter, r *http.Request) + func (s *TestServer) SetRoute(name string, resp Response) + func (s *TestServer) Stats(name string) (st Stat)