Skip to main content

http_status_code_from_response

Function http_status_code_from_response 

Source
pub fn http_status_code_from_response(response: &str) -> u16
Expand description

Extracts a response status code from an HTTP status line.

§Parameters

§Returns

Returns the computed value produced by crate::http::http_status_code_from_response.

§Performance

Performance is proportional to the size of the supplied inputs and any parsed or loaded data consumed by crate::http::http_status_code_from_response.

§Examples

ⓘ
let _result = pharos_runtime_core::http::http_status_code_from_response(todo!());
  • crate::http for adjacent helpers that share the same runtime surface.