Skip to content

Match multiple methods in HTTPRouteMatch #1785

@tamalsaha

Description

@tamalsaha

What would you like to be added:

Method *HTTPMethod `json:"method,omitempty"`

It will be better DX to support multiple method matches in HTTPRouteMatch

Method []HTTPMethod json:"method,omitempty"``

Why this is needed:

While this can be done using multiple match rules, it is better DX to support []HTTPMethod. Also, the other matches (header, query params) support array. So, it will be also more consistent.

Similar issue also exists in GRPC api.

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wantedDenotes an issue that needs help from a contributor. Must meet "help wanted" guidelines.kind/featureCategorizes issue or PR as related to a new feature.priority/backlogHigher priority than priority/awaiting-more-evidence.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions