[−][src]Function saf_httparser::request_from_str
pub fn request_from_str(buffer: &str) -> Result<Request<&[u8]>, String>
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())
.