testhttpserver

package
v0.0.13 Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2026 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Call

type Call struct {
	Header http.Header
	Body   []byte
}

type Server

type Server struct {
	// contains filtered or unexported fields
}

func New

func New(t *testing.T) *Server

func (*Server) BaseURL

func (s *Server) BaseURL() string

func (*Server) Calls

func (s *Server) Calls(path string) []Call

func (*Server) Handle

func (s *Server) Handle(pattern string, handler http.Handler)

func (*Server) HandleFunc

func (s *Server) HandleFunc(pattern string, handler func(http.ResponseWriter, *http.Request))

func (*Server) Listener

func (s *Server) Listener() net.Listener

func (*Server) Run

func (s *Server) Run()

func (*Server) URL

func (s *Server) URL(path string) string

Jump to

Keyboard shortcuts

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