Skip to main content

send_text_response

Function send_text_response 

Source
pub fn send_text_response(status: u16, status_text: &str, body: &str) -> String
Expand description

Builds a text response wire representation with a bounded body.

§Parameters

§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"");
  • crate::http for adjacent helpers that share the same runtime surface.