Skip to content

Support Header matching in Endpoint Routing #21157

Open
@davidni

Description

@davidni

Is your feature request related to a problem? Please describe.

No. In the context of YARP, some routes must support header matching. If there is interest, I can submit a PR to contribute that here.

Describe the solution you'd like

Our implementation handles the following:

  • Match on the presence of a given header
  • Match on a given value of a header (e.g. only match if header x-example has value abc, def or ace. Custom string comparison modes are supported)
  • Match on a given prefix of a header value (e.g. only match if header x-eample starts with abc, def or ace. Custom string comparison modes are supported).

Additional context

We have not implemented jump tables yet. We would hope the ASP .NET Core can take that on down the line if it seems relevant.

Metadata

Metadata

Assignees

No one assigned

    Labels

    affected-mediumThis issue impacts approximately half of our customersarea-middlewareIncludes: URL rewrite, redirect, response cache/compression, session, and other general middlewaresarea-networkingIncludes servers, yarp, json patch, bedrock, websockets, http client factory, and http abstractionsenhancementThis issue represents an ask for new feature or an enhancement to an existing onefeature-yarpThis issue is related to work on yarpseverity-majorThis label is used by an internal tool

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions