Skip to main content

render_declared_page_response_with_headers

Function render_declared_page_response_with_headers 

Source
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

§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!());