Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multi-value segments for PathCodecs #2959

Merged
merged 3 commits into from
Jul 15, 2024
Merged

Conversation

987Nabil
Copy link
Contributor

fixes #2679
/claim #2679
/split @kyri-petrou

@987Nabil
Copy link
Contributor Author

The full RFC 6570 - URI Template has no place in zio-http, since it is very focused on query param extraction and zio-http has no query params defined in the path. @kyri-petrou and I went with multi-value segments as the way to implement what the issue creator seemed to care most about.
We added some limitations to what combination of values are possible. For example extracting two Ints without a delimiter is not possible, since it is impossible to recognise where one starts and the other ends.

@987Nabil 987Nabil force-pushed the substring-path-decoders branch 3 times, most recently from c63dea4 to cff0d9a Compare July 13, 2024 09:48
@987Nabil 987Nabil changed the title First pass on segment codecs Multi-value segments for PathCodecs Jul 15, 2024
@jdegoes
Copy link
Member

jdegoes commented Jul 15, 2024

Nicely done! Thanks for the attention to performance in this critical section of the code. 🙏

@jdegoes jdegoes merged commit df1523e into zio:main Jul 15, 2024
64 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Improve Routes DSL to support complex URI template patterns
3 participants