helioshttptest

package module
v0.1.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 27, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultRemoteAddr = origin_httptest.DefaultRemoteAddr

Variables

This section is empty.

Functions

func NewRequest

func NewRequest(method, target string, body io.Reader) *http.Request

Types

type ResponseRecorder

type ResponseRecorder = origin_httptest.ResponseRecorder

func NewRecorder

func NewRecorder() *ResponseRecorder

type Server

type Server struct {
	URL         string
	Listener    net.Listener
	EnableHTTP2 bool
	TLS         *tls.Config
	Config      *http.Server
	// contains filtered or unexported fields
}

func NewServer

func NewServer(handler http.Handler) *Server

func NewTLSServer

func NewTLSServer(handler http.Handler) *Server

func NewUnstartedServer

func NewUnstartedServer(handler http.Handler) *Server

func (*Server) Certificate

func (s *Server) Certificate() *x509.Certificate

func (*Server) Client

func (s *Server) Client() *http.Client

func (*Server) Close

func (s *Server) Close()

func (*Server) CloseClientConnections

func (s *Server) CloseClientConnections()

func (*Server) Start

func (s *Server) Start()

func (*Server) StartTLS

func (s *Server) StartTLS()

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL