restclient

package
v0.0.0-...-80c7f35 Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddMockup

func AddMockup(mock Mock)

func FlushMockups

func FlushMockups()

func Post

func Post(url string, body interface{}, headers http.Header) (*http.Response, error)

func StartMockups

func StartMockups()

func StopMockups

func StopMockups()

Types

type Mock

type Mock struct {
	Url        string
	HttpMethod string
	Response   *http.Response
	Err        error
}

Jump to

Keyboard shortcuts

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