module Roda::RodaPlugins::Base::RequestMethods
def if_match(args)
returns the rack response when the block returns. If any of
If all of the arguments match, yields to the match block and
def if_match(args) path = @remaining_path # For every block, we make sure to reset captures so that # nesting matchers won't mess with each other's captures. captures = @captures.clear if match_all(args) block_result(yield(*captures)) throw :halt, response.finish else @remaining_path = path false end end