httpe

package module
v0.0.0-...-6303bce Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2023 License: MIT Imports: 1 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ToMiddleware

func ToMiddleware(mw func(HandlerWithError) HandlerWithError) func(Handler) Handler

func ToMiddlewareWithError

func ToMiddlewareWithError(mw func(Handler) Handler) func(HandlerWithError) HandlerWithError

Types

type Handler

type Handler = http.Handler

func ToHandler

func ToHandler(h HandlerWithError) Handler

type HandlerFunc

type HandlerFunc = http.HandlerFunc

type HandlerWithError

type HandlerWithError interface {
	ServeHTTPWithError(http.ResponseWriter, *http.Request) error
}

func ToHandlerWithError

func ToHandlerWithError(h Handler) HandlerWithError

type HandlerWithErrorFunc

type HandlerWithErrorFunc func(http.ResponseWriter, *http.Request) error

func (HandlerWithErrorFunc) ServeHTTP

func (HandlerWithErrorFunc) ServeHTTPWithError

func (f HandlerWithErrorFunc) ServeHTTPWithError(w http.ResponseWriter, r *http.Request) error

Jump to

Keyboard shortcuts

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