Skip to main content

http_parse_reason_phrase

Function http_parse_reason_phrase 

Source
pub fn http_parse_reason_phrase(status_code: u16) -> &'static str
Expand description

Returns a stable HTTP reason phrase for a status code.

§Parameters

§Returns

Returns the computed value produced by crate::binaries::http_parse_reason_phrase.

§Examples

ⓘ
let _result = pharos_native::binaries::http_parse_reason_phrase(400);
  • crate::binaries for adjacent helpers that share the same runtime surface.