Skip to content
This repository was archived by the owner on May 21, 2025. It is now read-only.
This repository was archived by the owner on May 21, 2025. It is now read-only.

Generalize adapters #18

Closed
Closed
@pirfalt

Description

@pirfalt

chi.Mux, gin.Engine, gorillamux.Router, http.HandlerFunc and negroni.Negroni all implements the http.Handler interface, and all there adapter files are strikingly similar. All the adapters could probably be replaced with a single adapter which takes that http.Handler interface instead of the concrete implementations.

Which I noticed after opening #17 which adds this to only the handlerfunc package a new httpadapter package. (Which all others could delegate to).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions