pub fn dispatch_provider() -> Arc<ServiceProvider> ⓘExpand description
Provider for HTTP dispatch and #[handler(inject)] factories.
Resolves from the active DispatchRuntime: the scope opened by
DispatchRuntime::run_in_scope (hosted services) first, else the runtime
itself. Hosts scope their runtime around every HTTP request, so endpoint
code always has one; a call from a thread/task with no runtime is a
programming error and panics.