docilemonkey

package
v0.0.0-...-5c0f670 Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2019 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Handler

func Handler(w http.ResponseWriter, r *http.Request)

Handler that will respond what you ask it to respond. Possible query params are :

s: will be the HTTP status code of the response (ex: 200, or 500)
t: time to wait before responding (ex: 10s, or 200ms)
b: will be the body of the response
bb: if parameter 'b' has no value and if bb=1 then the body of the request (if any) will be sent back in the response

func NewTestServer

func NewTestServer() *httptest.Server

Types

This section is empty.

Jump to

Keyboard shortcuts

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