Skip to main content

message

Function message 

Source
pub fn message(
    start: &str,
    icap_headers: Vec<(String, String)>,
    req: Option<&HttpHead>,
    res: Option<&HttpHead>,
    body: Option<&[u8]>,
    body_kind: &str,
) -> Result<Vec<u8>>
Expand description

Assemble an ICAP message: head, then the embedded HTTP heads and body, with the Encapsulated header computed from their sizes.