athena-framework / athena

An ecosystem of reusable, independent components
https://athenaframework.org
MIT License
211 stars 17 forks source link

Introduce `ATH::RequestMatcher` #338

Closed Blacksmoke16 closed 9 months ago

Blacksmoke16 commented 9 months ago

Introduces a generic way to match an ATH::Request given a set of rules. This currently isn't integrated anywhere, but will be put to use soon to resolve https://github.com/athena-framework/athena/blob/69b5d0edc65bd847a0bdc60a3159b22d7e28a346/src/components/framework/src/view/format_negotiator.cr#L24.

Also ensures the method of all ATH::Request instances is upper case.