Documentation
¶
Index ¶
- func BasicAuth(w http.ResponseWriter, r *http.Request)
- func Bearer(w http.ResponseWriter, r *http.Request)
- func CatchAll(w http.ResponseWriter, r *http.Request)
- func FormData(w http.ResponseWriter, r *http.Request)
- func Http2(w http.ResponseWriter, r *http.Request)
- func Image(w http.ResponseWriter, _ *http.Request)
- func JsonBody(w http.ResponseWriter, r *http.Request)
- func NeedCookie(w http.ResponseWriter, r *http.Request)
- func NewMux() *http.ServeMux
- func Raw(w http.ResponseWriter, r *http.Request)
- func Redirect(w http.ResponseWriter, r *http.Request)
- func Redirected(w http.ResponseWriter, _ *http.Request)
- func SetCookie(w http.ResponseWriter, _ *http.Request)
- func Slow(w http.ResponseWriter, r *http.Request)
- func Token(w http.ResponseWriter, _ *http.Request)
- func URLEncoded(w http.ResponseWriter, r *http.Request)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NeedCookie ¶
func NeedCookie(w http.ResponseWriter, r *http.Request)
func NewMux ¶
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 Redirected ¶
func Redirected(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.
Click to show internal directories.
Click to hide internal directories.