request_from_str

Function request_from_str 

Source
pub fn request_from_str(buffer: &str) -> Result<Request<&[u8]>, String>
Expand description

Same as request_from_bytes, except that this function takes the message content as a string slice. More convenient if you don’t want to call it like request_from_bytes(buffer.as_bytes()).