response

package
v4.0.0 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2025 License: BSD-3-Clause Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DisabledHandler

func DisabledHandler(disabled bool, next http.Handler) http.Handler

DisabledHandler is a middleware handler that returns an HTTP 503 (Service unavailable) error if 'disabled' is true. Otherwise it serves 'next'.

func NotImplementedHandler

func NotImplementedHandler() http.Handler

func NullHandler

func NullHandler() http.Handler

func PingHandler

func PingHandler(response string) (http.Handler, error)

func PingPongHandler

func PingPongHandler() (http.Handler, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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