pub fn dispatch_response_file_for_request(
root: &Path,
method: &str,
path: &str,
) -> Option<String>Expand description
Serves a bounded route fixture file directly as response bytes.
§Parameters
root: Input consumed bycrate::runtime::dynamic::dispatch_response_file_for_request.method: Input consumed bycrate::runtime::dynamic::dispatch_response_file_for_request.path: Input consumed bycrate::runtime::dynamic::dispatch_response_file_for_request.
§Returns
Returns Some when crate::runtime::dynamic::dispatch_response_file_for_request can produce a value and None otherwise.
§Performance
Performance is proportional to the size of the supplied inputs and any parsed or loaded data consumed by crate::runtime::dynamic::dispatch_response_file_for_request.
§Examples
ⓘ
let _result = pharos_native::runtime::dynamic::dispatch_response_file_for_request(std::path::Path::new("."), todo!(), std::path::Path::new("fixture.json"));§Related
crate::runtime::dynamicfor adjacent helpers that share the same runtime surface.