pub trait RuntimeRequestService {
// Required methods
fn route_match_lookup(&self, target: &str) -> Option<String>;
fn route_match_store(&self, target: &str, app_id: &str);
fn framework_webhook_endpoint_id(&self, target: &str) -> Option<String>;
fn app_declares_framework_webhook_endpoint(
&self,
app: &AppRuntime,
endpoint_id: &str,
) -> bool;
}Expand description
Root-supplied hooks for app-neutral runtime request dispatch.
Required Methods§
Sourcefn route_match_lookup(&self, target: &str) -> Option<String>
fn route_match_lookup(&self, target: &str) -> Option<String>
Looks up a cached route-to-app match for the absolute request target.
Sourcefn route_match_store(&self, target: &str, app_id: &str)
fn route_match_store(&self, target: &str, app_id: &str)
Stores a route-to-app match after app ownership has been resolved.
Sourcefn framework_webhook_endpoint_id(&self, target: &str) -> Option<String>
fn framework_webhook_endpoint_id(&self, target: &str) -> Option<String>
Returns a framework webhook endpoint id for request targets that use a framework-owned path.
Sourcefn app_declares_framework_webhook_endpoint(
&self,
app: &AppRuntime,
endpoint_id: &str,
) -> bool
fn app_declares_framework_webhook_endpoint( &self, app: &AppRuntime, endpoint_id: &str, ) -> bool
Returns whether one app declares ownership of a framework webhook endpoint.