mwhttp

package
v2.1.2 Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2018 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package mwhttp is DEPRECATED, left for backwards compatibility.

Please use github.com/utrack/clay/v2/server/middlewares/mwhttp directly instead.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Middleware

type Middleware = mwhttp.Middleware

Middleware is the HTTP middleware type. It processes the request (potentially mutating it) and gives control to the underlying handler.

func CloseNotifier

func CloseNotifier() Middleware

CloseNotifier cancels the context if client goes away.

func Recover

func Recover(logger interface{}) Middleware

Recover recovers HTTP server from handlers' panics.

Jump to

Keyboard shortcuts

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