Module salvo_core::routing::filters
source · Expand description
Filter module
This module provides filters for routing requests based on various criteria such as uri scheme, hostname, port, path, and HTTP method.
Structs§
- Chars wisp match chars in url segement.
- CharsWispBuilder
- Comb wisp is a group of other kind of wisps in the same url segment.
- Const wisp is used for match the const string in the path.
FnFilter
accepts a function as it’s param, use this function to filter request.- Filter by request uri host.
- Filter by request method
- Named wisp match part in url segment and give it a name.
- Filter request by it’s path information.
- Filter by request uri host.
- Regex wisp match part in url segment use regex pattern and give it a name.
- RegexWispBuilder
- Filter by request uri scheme.
Enums§
- Enum of all wisp kinds.
Traits§
- Trait for filter request.
- PathWisp
- WispBuilder
Functions§
- Filter request, only allow delete method.
- Filter request, only allow get method.
- Filter request, only allow head method.
- Filter request by uri hostname.
- Filter request, only allow options method.
- Filter request, only allow patch method.
- Filter request use
PathFilter
. - Filter request by uri port.
- Filter request, only allow post method.
- Filter request, only allow put method.
- Filter request by uri scheme.