recovery

package module
v0.0.0-...-6cba69d Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2014 License: Apache-2.0 Imports: 4 Imported by: 14 modules, 15 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

net-http-recover

Build Status

See GoDoc for documentation.

Simple Go net/http recovery middleware

http.Handler middleware for panic recovery.

I've copy/pasted this code around several times, so I put it into a proper package.

Inspired by https://github.com/codegangsta/negroni and https://github.com/gorilla/handlers

Documentation

Overview

Package recovery implements a simple net/http recovery middleware

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Handler

func Handler(out io.Writer, h http.Handler, printStack bool) http.Handler

Handler returns a new http.Handler that will wrap another handler and recover any panics

Types

This section is empty.

Jump to

Keyboard shortcuts

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