Versions in this module Expand all Collapse all v1 v1.5.1 Dec 13, 2021 v0 v0.0.1 Dec 13, 2021 Changes in this version + const DefaultRemoteAddr + func NewRequest(method, target string, body io.Reader) *http.Request + type ResponseRecorder struct + Body *bytes.Buffer + Code int + Flushed bool + HeaderMap http.Header + func NewRecorder() *ResponseRecorder + func (rw *ResponseRecorder) Flush() + func (rw *ResponseRecorder) Header() http.Header + func (rw *ResponseRecorder) Result() *http.Response + func (rw *ResponseRecorder) Write(buf []byte) (int, error) + func (rw *ResponseRecorder) WriteHeader(code int) + func (rw *ResponseRecorder) WriteString(str string) (int, error) + type Server struct + Config *http.Server + EnableHTTP2 bool + Listener net.Listener + TLS *tls.Config + URL string + func NewServer(handler http.Handler) *Server + func NewTLSServer(handler http.Handler) *Server + func NewUnstartedServer(handler http.Handler) *Server + func (s *Server) Certificate() *x509.Certificate + func (s *Server) Client() *http.Client + func (s *Server) Close() + func (s *Server) CloseClientConnections() + func (s *Server) Start() + func (s *Server) StartTLS()