request

package
v0.0.0-...-f47fe49 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateTestContext

func CreateTestContext(method string, path string, body io.Reader, context map[string]interface{}) (echo.Context, *httptest.ResponseRecorder)

CreateTestContext sets up a new echo context with the parameters given, and returns the context itself and the response recorder.

func EmptyTestContext

func EmptyTestContext() (echo.Context, *httptest.ResponseRecorder)

EmptyTestContext returns an empty http context - for when we don't need much other than the recorder + context

Types

This section is empty.

Jump to

Keyboard shortcuts

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