Skip to content

Expose structured request path from ServerHttpRequest in WebFlux [SPR-15648] #20207

Closed

Description

@spring-projects-issues

Rossen Stoyanchev opened SPR-15648 and commented

Instead of using Strings for parts of the path (contextPath vs pathWithinApplication), provide an Object-based representation of the path exposing its structure at multiple levels -- contextPath + pathWithinApplication, path segments, path segment value + path segment parameters.

A typed Object-based representation of the path means it only needs to be parsed once and then passed, any number of times, into PathPattern for matching purposes. Internally it can check the number of segments. Now that PathPattern encodes patterns, we could also ensure that encoded characters are in a consistent case.

Yet another benefit is that any code can work with the path with support for seeing or not seeing the context path, path parameter content, and so on.


Issue Links:

Referenced from: commits 2d17411, 38a12ed

Activity

  1. added
    type: enhancement
    in: web
    on Jan 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

in: webtype: enhancement

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions