pub fn write_html_response_with_headers(
status: u16,
status_text: &str,
html: &str,
csrf_token: Option<&str>,
extra_headers: &str,
) -> StringExpand description
Builds an HTML response with caller-supplied validated header lines.
§Parameters
status: Input consumed bycrate::runtime::dynamic::write_html_response_with_headers.status_text: Input consumed bycrate::runtime::dynamic::write_html_response_with_headers.html: Input consumed bycrate::runtime::dynamic::write_html_response_with_headers.csrf_token: Input consumed bycrate::runtime::dynamic::write_html_response_with_headers.extra_headers: Input consumed bycrate::runtime::dynamic::write_html_response_with_headers.
§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!());§Related
crate::runtime::dynamicfor adjacent helpers that share the same runtime surface.