pub fn render_declared_page_response_with_headers(
app_root: &Path,
page_id: &str,
body_params_json: &str,
extra_headers: Option<&str>,
) -> Result<String, i32>Expand description
Renders one declared page into a complete response string with bounded headers.
§Parameters
app_root: Input consumed bycrate::runtime::dynamic::render_declared_page_response_with_headers.page_id: Input consumed bycrate::runtime::dynamic::render_declared_page_response_with_headers.body_params_json: Input consumed bycrate::runtime::dynamic::render_declared_page_response_with_headers.extra_headers: Input consumed bycrate::runtime::dynamic::render_declared_page_response_with_headers.
§Returns
Returns the successful value produced by crate::runtime::dynamic::render_declared_page_response_with_headers or an error when the operation fails.
§Errors
Returns an error value when crate::runtime::dynamic::render_declared_page_response_with_headers cannot complete successfully.
§Performance
Performance is proportional to the size of the supplied inputs and any parsed or loaded data consumed by crate::runtime::dynamic::render_declared_page_response_with_headers.
§Examples
ⓘ
let _result = pharos_native::runtime::dynamic::render_declared_page_response_with_headers(std::path::Path::new("apps/dev_docs"), "home", todo!(), todo!());§Related
crate::runtime::dynamicfor adjacent helpers that share the same runtime surface.