Skip to content

Pedestal's router should be verb-neutral #443

Closed
@ohpauleez

Description

@ohpauleez

Problem: The route and router are hard-coded to HTTP verbs. This prevents the module from being used on other (similar) protocols, where it would be advantageous to do so. It also prevents the router from doing pure-path routing, where verbs don't make sense.

Proposed Solution:
In the new module refactor, route emerged as a standalone module.

Going forward, its namespace should be changed from io.pedestal.http.route.* to just io.pedestal.route.*, and the routers should be updated to be passed the "acceptable verb-set" as an argument in their creation.

This would allow the routers to be used for other protocols, common in service-to-service communication.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions