Skip to main content

RuntimeRequestService

Trait RuntimeRequestService 

Source
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§

Source

fn route_match_lookup(&self, target: &str) -> Option<String>

Looks up a cached route-to-app match for the absolute request target.

Source

fn route_match_store(&self, target: &str, app_id: &str)

Stores a route-to-app match after app ownership has been resolved.

Source

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.

Source

fn app_declares_framework_webhook_endpoint( &self, app: &AppRuntime, endpoint_id: &str, ) -> bool

Returns whether one app declares ownership of a framework webhook endpoint.

Implementors§