pub type Extractor = fn(&ServiceRequest) -> String;
Expand description
It is used to extractor a resource name from requests for Sentinel. If you the service request is http::Request
,
and you are using nightly toolchain, you don’t need to provide a sentinel resource name extractor. The middleware will automatically extract the request uri.