Functions§
- 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.
- 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 likerequest_from_bytes(buffer.as_bytes())
.