Skip to main content

Module routing

Module routing 

Source
Expand description

Request routing abstractions.

This module exposes traits and builders for plugging application logic into the server. It now includes a fluent router builder focused on ergonomics.

Structs§

DefaultRouter
Simple router that always returns a 501 placeholder.
Router
Router that dispatches requests to registered handlers by method and path.
RouterBuilder
Builder for constructing a Router instance with fluent method helpers.

Traits§

Handler
Trait implemented by application handlers.

Functions§

router
Construct a fresh RouterBuilder without needing to import the type.