Skip to main content

from_http

Function from_http 

Source
pub fn from_http(
    status: u16,
    headers: &HeaderMap,
    body: &str,
) -> CleanLibraryError
Expand description

Map HTTP status + headers + body into a CleanLibraryError variant. Reads X-CleanLibrary-Reason header per App Rev 4 §9.2 reason codes.