Skip to content

Add extractors for inner variants of MatchedPath and RawPathParams #3880

Description

@mladedav

Feature Request

Motivation

After #3856 we have InnerPath but we're still missing equivalent for MatchedPath and RawPathParams.

Proposal

Add

  • InnerMatchedPath
  • Expose start of inner match in RawPathParams

Alternatives

Create InnerRawPathParams instead of exposing index of the start. However, that struct is mostly for performance benefits over things like Path<Vec<String>> if you want to avoid deserializations and allocations so it might be preferable to not allocate a new Vec for the new extractor.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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