Skip to content

why the use of http.HandlerFunc #174

@rickb777

Description

@rickb777

Why does Negroni use both http.Handler and http.HandlerFunc in its API? It's rather inconsistent.

func New(handlers ...Handler) *Negroni

compared with the third parameter in

type Handler interface {
	ServeHTTP(rw http.ResponseWriter, r *http.Request, next http.HandlerFunc)
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions