httptesting

package
v0.0.0-...-df570b3 Latest Latest
Warning

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

Go to latest
Published: Jul 12, 2018 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Delete

func Delete(path string, body io.Reader, res *httptest.ResponseRecorder) *httputil.Context

Delete returns a new Context using DELETE method.

func Get

func Get(path string, body io.Reader, res *httptest.ResponseRecorder) *httputil.Context

GET returns a new Context using GET method.

func NewRequest

func NewRequest(method string, path string, body io.Reader, res http.ResponseWriter) *httputil.Context

NewRequest returns a new instance of a httputil.Context with provided parameters.

func Patch

func Patch(path string, body io.Reader, res *httptest.ResponseRecorder) *httputil.Context

Patch returns a new Context using PUT method.

func Post

func Post(path string, body io.Reader, res *httptest.ResponseRecorder) *httputil.Context

Post returns a new Context using PUT method.

func Put

func Put(path string, body io.Reader, res *httptest.ResponseRecorder) *httputil.Context

Put returns a new Context using PUT method.

Types

This section is empty.

Jump to

Keyboard shortcuts

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