http

package
v0.0.0-...-430806f Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2013 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package errorhandling provides An HTTP decorator which recovers from `panic`

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DefaultRecoveryHandler

func DefaultRecoveryHandler(r *http.Request, rw http.ResponseWriter, err interface{})

Types

type RecoveringHandler

type RecoveringHandler struct {
	http.Handler
	RecoveryHandler
}

func Decorate

func Decorate(delegate http.Handler, recoveryHandler RecoveryHandler) RecoveringHandler

func (RecoveringHandler) ServeHTTP

func (lh RecoveringHandler) ServeHTTP(rw http.ResponseWriter, r *http.Request)

type RecoveryHandler

type RecoveryHandler func(*http.Request, http.ResponseWriter, interface{})

Jump to

Keyboard shortcuts

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