package httpserver
import "github.com/moby/buildkit/util/testutil/httpserver"
Index ¶
Types ¶
type Response ¶
type Stat ¶
type Stat struct { AllRequests, CachedRequests int }
type TestServer ¶
func NewTestServer ¶
func NewTestServer(routes map[string]Response) *TestServer
func (*TestServer) ServeHTTP ¶
func (s *TestServer) ServeHTTP(w http.ResponseWriter, r *http.Request)
func (*TestServer) SetRoute ¶
func (s *TestServer) SetRoute(name string, resp Response)
func (*TestServer) Stats ¶
func (s *TestServer) Stats(name string) (st Stat)
Source Files ¶
- Version
- v0.6.4
- Published
- Feb 21, 2020
- Platform
- js/wasm
- Imports
- 6 packages
- Last checked
- 10 minutes ago –
Tools for package owners.