Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Server ¶
type Server struct {
*nethttptest.Server
}
Server wraps net/httptest.Server to listen on all network interfaces
func NewServer ¶
NewServer starts a new httptest server that listens on all interfaces, contrary to the standard net/httptest.Server that listens only on localhost. This is useful when you want to access the test http server from within a docker container.
func NewUnStartedServer ¶ added in v0.23.2
Click to show internal directories.
Click to hide internal directories.