Searched refs:to_str (Results 1 – 9 of 9) sorted by relevance
30 let content_type = content_type.to_str().unwrap(); in binary_request()53 let content_type = content_type.to_str().unwrap(); in text_request()
102 .to_str() in codegen()
34 headers.get(CONTENT_TYPE).and_then(|val| val.to_str().ok()) in content_type()368 match value.and_then(|val| val.to_str().ok()) { in from_header()584 assert_eq!(status.to_str().unwrap(), "0") in find_trailers_buffered()
111 .to_str() in try_parse_grpc_timeout()
124 metadata.get(ASCII_NAME).unwrap().to_str().unwrap(), in status_with_metadata()
432 pub fn to_str(&self) -> Result<&str, ToStrError> { in to_str() method433 self.inner.to_str().map_err(|_| ToStrError::new()) in to_str()
2529 .to_str() in test_to_headers_encoding()
117 let header_value_str = header_value.to_str().ok()?; in from_accept_encoding_header()
47 .to_str() in client_enabled_server_enabled()