Searched refs:as_bytes (Results 1 – 10 of 10) sorted by relevance
108 VE::is_empty(self.inner.as_bytes()) in is_empty()130 VE::decode(self.inner.as_bytes()) in to_bytes()196 self.inner.as_bytes() in as_encoded_bytes()447 pub fn as_bytes(&self) -> &[u8] { in as_bytes() method448 self.inner.as_bytes() in as_bytes()673 self.inner.partial_cmp(other.as_bytes()) in partial_cmp()701 self.as_bytes().partial_cmp(other.inner.as_bytes()) in partial_cmp()708 self.partial_cmp(other.inner.as_bytes()) in partial_cmp()722 self.inner.partial_cmp(other.as_bytes()) in partial_cmp()736 self.as_bytes().partial_cmp(other.inner.as_bytes()) in partial_cmp()[all …]
102 a.as_bytes() == b in equals()159 if let Ok(decoded) = crate::util::base64::STANDARD.decode(a.as_bytes()) { in equals()162 a.as_bytes() == b in equals()167 match (Self::decode(a.as_bytes()), Self::decode(b.as_bytes())) { in values_equal()175 if let Ok(decoded) = Self::decode(value.as_bytes()) { in fmt()
146 MetadataKey::from_bytes(s.as_bytes()).map_err(|_| InvalidMetadataKey::new()) in from_str()158 self.as_str().as_bytes() in as_ref()
2280 let key = http::header::HeaderName::from_bytes(self.as_bytes()) in entry()2342 let key = http::header::HeaderName::from_bytes(self.as_bytes()) in entry()2403 let key = http::header::HeaderName::from_bytes(self.as_bytes()) in entry()
18 buf.extend(value.as_bytes()); in new()20 buf.extend(TONIC_USER_AGENT.as_bytes()); in new()
132 writer.write_all(content.as_bytes()).unwrap(); in write_fds()
51 value.put_slice(encoding.as_str().as_bytes()); in into_accept_encoding_header_value()139 match header_value.as_bytes() { in from_encoding_header()
445 Some(header) => percent_decode(header.as_bytes()) in from_header_map()453 .decode(header.as_bytes()) in from_header_map()524 Cow::from(percent_encode(self.message().as_bytes(), ENCODING_SET)).as_bytes(), in add_header()
492 Self::from_shared(t.as_bytes()) in try_from()
384 acc.put_slice(value.as_bytes()); in encode_trailers()