fake

package
v1.6.0 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2021 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
}

Handler implements a fake Sciensano server

func (*Handler) BigResponse

func (handler *Handler) BigResponse()

BigResponse creates a big response

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