pub fn send_text_response(status: u16, status_text: &str, body: &str) -> StringExpand description
Builds a text response wire representation with a bounded body.
§Parameters
status: Input consumed bycrate::http::send_text_response.status_text: Input consumed bycrate::http::send_text_response.body: Input consumed bycrate::http::send_text_response.
§Returns
Returns the computed value produced by crate::http::send_text_response.
§Examples
ⓘ
let _result = pharos_runtime_core::http::send_text_response(400, "400 Bad Request", b"");§Related
crate::httpfor adjacent helpers that share the same runtime surface.