[][src]Crate saf_httparser

Functions

request_from_bytes

Parses a buffer and returns a Request whose body is a byte slice, if everything goes successful. An error is returned in case the buffer content doesn't conform with HTTP message structure.

request_from_str

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()).