Skip to main content

extract_http_status

Function extract_http_status 

Source
pub fn extract_http_status(response: &[u8]) -> String
Expand description

Extract the HTTP status code from a response (e.g., “200” from “HTTP/1.1 200 OK”).