asset_route()
for high performance serving of
static filesressource_route()
is no longer
expected to be absolute (#18)ressource_route()
(#19)openapi_route()
for serving API spec based on an
openapi spec filereject_missing_methods
argument to
Route$add_handler()
to automatically catch requests to the
handler path that doesn’t have a matching method and return 405Lshared_secret_route()
for creating simple shared
secret request rejectionempty
fields to Route and RouteStack classesignore_trailing_slash
argument to the RouteStack
constructor. It allows the route stack to ignore the trailing slash of
request in different waysreport_route()
to create a route that
automatically renders and serves quarto and rmarkdown filesget_handler()
method to Route
(#9,
@cpsievert)root
field to Route
which will get
appended to all paths before matching to an incomming requestremap_handlers()
to loop through all handlers and
reassign them based on a user provided function. (#8)on_error()
method to modify how errors are handled.
The default is now to return 500
without any body and print
the error message with message()
.on_attach()
method that uses the new logging
system to log route errors.