handler

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2026 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BasicAuth

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

func Bearer

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

func CatchAll

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

func FormData

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

func Http2

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

func Image

func Image(w http.ResponseWriter, _ *http.Request)

func JsonBody

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

func NeedCookie

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

func NewMux

func NewMux() *http.ServeMux

NewMux wires every echo route to its handler. It is the single source of truth shared by the standalone echo server (cmd/echo) and the in-process end-to-end tests.

func Raw

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

Raw echoes the request's Content-Type and body verbatim, so fixtures can assert raw-body passthrough.

func Redirect

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

func Redirected

func Redirected(w http.ResponseWriter, _ *http.Request)

func SetCookie

func SetCookie(w http.ResponseWriter, _ *http.Request)

func Slow

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

Slow responds after ?ms= milliseconds, so timeout fixtures have something to time out against.

func Token

func Token(w http.ResponseWriter, _ *http.Request)

Token issues the bearer token the Bearer handler accepts, so chaining fixtures can log in and reuse it.

func URLEncoded

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

Types

This section is empty.

Jump to

Keyboard shortcuts

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