Skip to main content

write_html_response_with_headers

Function write_html_response_with_headers 

Source
pub fn write_html_response_with_headers(
    status: u16,
    status_text: &str,
    html: &str,
    csrf_token: Option<&str>,
    extra_headers: &str,
) -> String
Expand description

Builds an HTML response with caller-supplied validated header lines.

§Parameters

§Returns

Returns the computed value produced by crate::runtime::dynamic::write_html_response_with_headers.

§Examples

ⓘ
let _result = pharos_native::runtime::dynamic::write_html_response_with_headers(400, "400 Bad Request", todo!(), todo!(), todo!());