Skip to main content

dynamic_dispatch_match

Function dynamic_dispatch_match 

Source
pub fn dynamic_dispatch_match(
    file_path: &Path,
    method: &str,
    request_path: &str,
) -> Option<String>
Expand description

Matches a dynamic dispatch request against an app-owned route contract.

§Parameters

§Returns

Returns Some when crate::runtime::json_commands::dynamic_dispatch_match can produce a value and None otherwise.

§Examples

ⓘ
let _result = pharos_native::runtime::json_commands::dynamic_dispatch_match(todo!(), todo!(), "/");