Roda 3.87.0 Released #371
jeremyevans
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Roda 3.87.0 has been released!
New Features
A host_routing plugin has been added, for easier routing based on
the request host. Example:
The plugin also adds request predicate methods:
If the :scope_predicates plugin option is given, these predicate
methods are also supported directly in block scope (no "r.").
For more advanced cases, such as prefix matches on the host, the
hosts.default method accepts a block. In this case, you should
also call hosts.register to notify the plugin about what hosts
the block could return:
Other Improvements
In the custom_block_results plugin, if the block passed to
handle_block_result returns an object that is not a String,
nil, or false, Roda no longer attempts to write it to the response
body. Doing so is undesirable and would be a violation of the rack
spec.
Minor performance improvements have been made to the header_matchers
plugin.
Thanks,
Jeremy
Beta Was this translation helpful? Give feedback.
All reactions