While working with the crate, I noticed that many types like Method, HeaderName and others have from_bytes, but Scheme only has from_str. Would it make sense to add from_bytes for consistency with the others? Personally my use case is parsing a scheme from [u8]. Luckily there are only two schemes so I can match myself and this isn't really tedious but wondering if it could make sense from a consistency perspective.
While working with the crate, I noticed that many types like
Method,HeaderNameand others havefrom_bytes, butSchemeonly hasfrom_str. Would it make sense to addfrom_bytesfor consistency with the others? Personally my use case is parsing a scheme from[u8]. Luckily there are only two schemes so I canmatchmyself and this isn't really tedious but wondering if it could make sense from a consistency perspective.