getkirby-v2 / toolkit

This is the deprecated toolkit for Kirby v2.
http://getkirby.com
81 stars 50 forks source link

Added r::isMethodCacheable() and r::isMethodSafe() #262

Closed ezraverheijen closed 4 years ago

ezraverheijen commented 6 years ago

Inspired by Symfony. I use these kind of checks a lot to filter requests. These two additions help make the code more readable.