Searched refs:from_str (Results 1 – 6 of 6) sorted by relevance
573 HeaderValue::from_str(s) in from_str()813 assert!(from_str::<Ascii>("").is_empty()); in test_is_empty()814 assert!(from_str::<Binary>("").is_empty()); in test_is_empty()815 assert!(!from_str::<Ascii>("a").is_empty()); in test_is_empty()816 assert!(!from_str::<Binary>("a").is_empty()); in test_is_empty()817 assert!(!from_str::<Ascii>("=").is_empty()); in test_is_empty()818 assert!(from_str::<Binary>("=").is_empty()); in test_is_empty()819 assert!(!from_str::<Ascii>("===").is_empty()); in test_is_empty()820 assert!(from_str::<Binary>("===").is_empty()); in test_is_empty()821 assert!(!from_str::<Ascii>("=====").is_empty()); in test_is_empty()[all …]
145 fn from_str(s: &str) -> Result<Self, InvalidMetadataKey> { in from_str() method
67 HeaderValue::from_str(&format!("Greeter 1.1 {}", TONIC_USER_AGENT)).unwrap() in prepends_custom_user_agent_to_default()
18 test_case.split(',').map(Testcase::from_str).collect() in parse()
158 let hv = HeaderValue::from_str(v).unwrap(); in setup_map_try_parse()
505 fn from_str(s: &str) -> Result<Self, Self::Err> { in from_str() method