Home
last modified time | relevance | path

Searched refs:as_bytes (Results 1 – 10 of 10) sorted by relevance

/tonic/tonic/src/metadata/
H A Dvalue.rs108 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() method
448 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 …]
H A Dencoding.rs102 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()
H A Dkey.rs146 MetadataKey::from_bytes(s.as_bytes()).map_err(|_| InvalidMetadataKey::new()) in from_str()
158 self.as_str().as_bytes() in as_ref()
H A Dmap.rs2280 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()
/tonic/tonic/src/transport/channel/service/
H A Duser_agent.rs18 buf.extend(value.as_bytes()); in new()
20 buf.extend(TONIC_USER_AGENT.as_bytes()); in new()
/tonic/codegen/src/
H A Dmain.rs132 writer.write_all(content.as_bytes()).unwrap(); in write_fds()
/tonic/tonic/src/codec/
H A Dcompression.rs51 value.put_slice(encoding.as_str().as_bytes()); in into_accept_encoding_header_value()
139 match header_value.as_bytes() { in from_encoding_header()
/tonic/tonic/src/
H A Dstatus.rs445 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()
/tonic/tonic/src/transport/channel/
H A Dendpoint.rs492 Self::from_shared(t.as_bytes()) in try_from()
/tonic/tonic-web/src/
H A Dcall.rs384 acc.put_slice(value.as_bytes()); in encode_trailers()