middleware

package
v0.0.0-...-ad35ae5 Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2018 License: Apache-2.0 Imports: 4 Imported by: 2

Documentation

Overview

Package middleware middlewares for Mohawk

Package middleware http decorators

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Append

func Append(core http.HandlerFunc, handlers ...Decorator) http.HandlerFunc

Append concat a list of MiddleWares into the router routing table

Types

type Decorator

type Decorator func(h http.HandlerFunc) http.HandlerFunc

Decorator takes a http handler and wrap it with added functionality

func GzipDecodeDecorator

func GzipDecodeDecorator() Decorator

GzipDecodeDecorator addes a gzip decoder to reader

func GzipEncodeDecorator

func GzipEncodeDecorator() Decorator

GzipEncodeDecorator addes a gzip encoder to Writer

Jump to

Keyboard shortcuts

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