handlerconv

package
v8.3.4+incompatible Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2017 License: BSD-3-Clause Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FromStd

func FromStd(handler interface{}) context.Handler

FromStd converts native http.Handler & http.HandlerFunc to context.Handler.

Supported form types:

.FromStd(h http.Handler)
.FromStd(func(w http.ResponseWriter, r *http.Request))
.FromStd(func(w http.ResponseWriter, r *http.Request, next http.HandlerFunc))

func FromStdWithNext

func FromStdWithNext(h func(w http.ResponseWriter, r *http.Request, next http.HandlerFunc)) context.Handler

FromStdWithNext receives a standar handler - middleware form - and returns a compatible context.Handler wrapper.

Types

This section is empty.

Jump to

Keyboard shortcuts

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