Skip to content
This repository has been archived by the owner on Aug 30, 2023. It is now read-only.

missing ServeHTTP method #182

Closed
algogrit opened this issue Apr 14, 2018 · 1 comment
Closed

missing ServeHTTP method #182

algogrit opened this issue Apr 14, 2018 · 1 comment

Comments

@algogrit
Copy link

cannot use ravenHandler (type func(http.ResponseWriter, *http.Request)) as type http.Handler in argument to n.UseHandler:
func(http.ResponseWriter, *http.Request) does not implement http.Handler (missing ServeHTTP method)

I am wrapping the http.HandlerFunc using raven.RecoveryHandler; when trying to use with Negroni.

@algogrit
Copy link
Author

Perhaps changing the signature from:

func RecoveryHandler(handler func(http.ResponseWriter, *http.Request)) func(http.ResponseWriter, *http.Request)

to

func RecoveryHandler(handler http.HandlerFunc) http.HandlerFunc

might help?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant