fake

package
v1.9.2 Latest Latest
Warning

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

Go to latest
Published: Feb 8, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

type Handler struct {
	Fail      bool
	Slow      bool
	Responses map[string]string
	Count     int
	// contains filtered or unexported fields
}

Handler implements a fake Reporter server

func (*Handler) BigResponse

func (handler *Handler) BigResponse()

BigResponse creates a big responder

func (*Handler) Handle

func (handler *Handler) Handle(w http.ResponseWriter, req *http.Request)

Handle processes an incoming HTTP request

Jump to

Keyboard shortcuts

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