package
0.0.0-20220111133703-f1e56083d4f3
Repository: https://github.com/sandwichdev/net.git
Documentation: pkg.go.dev

# Functions

NewRecorder returns an initialized ResponseRecorder.
NewRequest returns a new incoming server Request, suitable for passing to an http.Handler for testing.
NewServer starts and returns a new Server.
NewTLSServer starts and returns a new Server using TLS.
NewUnstartedServer returns a new Server but doesn't start it.

# Constants

DefaultRemoteAddr is the default remote address to return in RemoteAddr if an explicit DefaultRemoteAddr isn't set on ResponseRecorder.

# Structs

ResponseRecorder is an implementation of http.ResponseWriter that records its mutations for later inspection in tests.
A Server is an HTTP server listening on a system-chosen port on the local loopback interface, for use in end-to-end HTTP tests.