Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TestHTTPServer ¶
type TestHTTPServer struct {
// contains filtered or unexported fields
}
TestHTTPServer is a http server for testing
func NewTestHTTPServer ¶
func NewTestHTTPServer() *TestHTTPServer
NewTestHTTPServer creates a new TestHTTPServer
func (*TestHTTPServer) RegisterHandler ¶
func (ts *TestHTTPServer) RegisterHandler(path string, h http.HandlerFunc)
RegisterHandler register a http handler
func (*TestHTTPServer) URL ¶
func (ts *TestHTTPServer) URL() string
URL returns the url of the http server
Click to show internal directories.
Click to hide internal directories.