Lines Matching full:parse
10 let name: HeaderName = "hello".parse().unwrap(); in smoke()
14 e.insert("world".parse().unwrap()); in smoke()
26 e.append("zomg".parse().unwrap()); in smoke()
71 let name: HeaderName = "hello".parse().unwrap(); in drain()
72 headers.insert(name, "world".parse().unwrap()); in drain()
88 "hello".parse::<HeaderName>().unwrap(), in drain()
89 "world".parse().unwrap(), in drain()
92 "zomg".parse::<HeaderName>().unwrap(), in drain()
93 "bar".parse().unwrap(), in drain()
96 "hello".parse::<HeaderName>().unwrap(), in drain()
97 "world2".parse().unwrap(), in drain()
125 headers.insert("hello", "world".parse().unwrap()); in drain_drop_immediately()
126 headers.insert("zomg", "bar".parse().unwrap()); in drain_drop_immediately()
127 headers.append("hello", "world2".parse().unwrap()); in drain_drop_immediately()
139 headers.insert("hello", "world".parse().unwrap()); in drain_forget()
140 headers.insert("zomg", "bar".parse().unwrap()); in drain_forget()
159 "hello".parse::<HeaderName>().unwrap(), in drain_entry()
160 "world".parse().unwrap(), in drain_entry()
163 "zomg".parse::<HeaderName>().unwrap(), in drain_entry()
164 "foo".parse().unwrap(), in drain_entry()
167 "hello".parse::<HeaderName>().unwrap(), in drain_entry()
168 "world2".parse().unwrap(), in drain_entry()
171 "more".parse::<HeaderName>().unwrap(), in drain_entry()
172 "words".parse().unwrap(), in drain_entry()
175 "more".parse::<HeaderName>().unwrap(), in drain_entry()
176 "insertions".parse().unwrap(), in drain_entry()
187 let vals: Vec<_> = e.insert_mult("wat".parse().unwrap()).collect(); in drain_entry()
204 "hello".parse::<HeaderName>().unwrap(), in eq()
205 "world".parse().unwrap(), in eq()
210 "hello".parse::<HeaderName>().unwrap(), in eq()
211 "world".parse().unwrap(), in eq()
215 a.insert("foo".parse::<HeaderName>().unwrap(), "bar".parse().unwrap()); in eq()
216 a.append("foo".parse::<HeaderName>().unwrap(), "baz".parse().unwrap()); in eq()
219 b.insert("foo".parse::<HeaderName>().unwrap(), "bar".parse().unwrap()); in eq()
222 b.append("foo".parse::<HeaderName>().unwrap(), "baz".parse().unwrap()); in eq()
225 a.append("a".parse::<HeaderName>().unwrap(), "a".parse().unwrap()); in eq()
226 a.append("a".parse::<HeaderName>().unwrap(), "b".parse().unwrap()); in eq()
227 b.append("a".parse::<HeaderName>().unwrap(), "b".parse().unwrap()); in eq()
228 b.append("a".parse::<HeaderName>().unwrap(), "a".parse().unwrap()); in eq()
236 m.insert(HOST, "localhost".parse().unwrap()); in into_header_name()
237 m.insert(&ACCEPT, "*/*".parse().unwrap()); in into_header_name()
238 m.insert("connection", "keep-alive".parse().unwrap()); in into_header_name()
240 m.append(LOCATION, "/".parse().unwrap()); in into_header_name()
241 m.append(&VIA, "bob".parse().unwrap()); in into_header_name()
242 m.append("transfer-encoding", "chunked".parse().unwrap()); in into_header_name()
250 let v: HeaderValue = "localhost".parse().unwrap(); in as_header_name()
268 m.insert(hdr.clone(), hdr.as_str().parse().unwrap()); in insert_all_std_headers()
293 h.insert(hdr.clone(), hdr.as_str().parse().unwrap()); in insert_79_custom_std_headers()
309 map.append(header::CONTENT_TYPE, "json".parse().unwrap()); in append_multiple_values()
310 map.append(header::CONTENT_TYPE, "html".parse().unwrap()); in append_multiple_values()
311 map.append(header::CONTENT_TYPE, "xml".parse().unwrap()); in append_multiple_values()
325 s.parse().unwrap() in custom_std()
411 headers.insert("foo", "bar".parse().unwrap()); in get_invalid()
419 headers.insert("evil\r\nfoo", "bar".parse().unwrap()); in insert_invalid()
434 headers.insert(VIA, "1.1 example.com".parse().unwrap()); in remove_multiple_a()
435 headers.insert(SET_COOKIE, "cookie_1=value 1".parse().unwrap()); in remove_multiple_a()
436 headers.append(SET_COOKIE, "cookie_2=value 2".parse().unwrap()); in remove_multiple_a()
437 headers.append(VIA, "1.1 other.com".parse().unwrap()); in remove_multiple_a()
438 headers.append(SET_COOKIE, "cookie_3=value 3".parse().unwrap()); in remove_multiple_a()
439 headers.insert(VARY, "*".parse().unwrap()); in remove_multiple_a()
444 assert_eq!(cookie, Some("cookie_1=value 1".parse().unwrap())); in remove_multiple_a()
448 assert_eq!(via, Some("1.1 example.com".parse().unwrap())); in remove_multiple_a()
452 assert_eq!(vary, Some("*".parse().unwrap())); in remove_multiple_a()
459 headers.insert(VIA, "1.1 example.com".parse().unwrap()); in remove_multiple_b()
460 headers.insert(SET_COOKIE, "cookie_1=value 1".parse().unwrap()); in remove_multiple_b()
461 headers.append(SET_COOKIE, "cookie_2=value 2".parse().unwrap()); in remove_multiple_b()
462 headers.append(VIA, "1.1 other.com".parse().unwrap()); in remove_multiple_b()
463 headers.append(SET_COOKIE, "cookie_3=value 3".parse().unwrap()); in remove_multiple_b()
464 headers.insert(VARY, "*".parse().unwrap()); in remove_multiple_b()
469 assert_eq!(vary, Some("*".parse().unwrap())); in remove_multiple_b()
473 assert_eq!(via, Some("1.1 example.com".parse().unwrap())); in remove_multiple_b()
477 assert_eq!(cookie, Some("cookie_1=value 1".parse().unwrap())); in remove_multiple_b()
492 headers.insert(VIA, "1.1 example.com".parse().unwrap()); in remove_entry_multi_0_others()
493 headers.append(VIA, "1.1 other.com".parse().unwrap()); in remove_entry_multi_0_others()
503 headers.insert(SET_COOKIE, "cookie_1=value 1".parse().unwrap()); in remove_entry_multi_1()
513 headers.insert(SET_COOKIE, "cookie_1=value 1".parse().unwrap()); in remove_entry_multi_1_other()
514 headers.insert(VIA, "1.1 example.com".parse().unwrap()); in remove_entry_multi_1_other()
529 headers.insert(SET_COOKIE, "cookie_1=value 1".parse().unwrap()); in remove_entry_multi_2()
530 headers.append(SET_COOKIE, "cookie_2=value 2".parse().unwrap()); in remove_entry_multi_2()
540 headers.insert(SET_COOKIE, "cookie_1=value 1".parse().unwrap()); in remove_entry_multi_3()
541 headers.append(SET_COOKIE, "cookie_2=value 2".parse().unwrap()); in remove_entry_multi_3()
542 headers.append(SET_COOKIE, "cookie_3=value 3".parse().unwrap()); in remove_entry_multi_3()
552 headers.insert(VIA, "1.1 example.com".parse().unwrap()); in remove_entry_multi_3_others()
553 headers.insert(SET_COOKIE, "cookie_1=value 1".parse().unwrap()); in remove_entry_multi_3_others()
554 headers.append(SET_COOKIE, "cookie_2=value 2".parse().unwrap()); in remove_entry_multi_3_others()
555 headers.append(VIA, "1.1 other.com".parse().unwrap()); in remove_entry_multi_3_others()
556 headers.append(SET_COOKIE, "cookie_3=value 3".parse().unwrap()); in remove_entry_multi_3_others()
557 headers.insert(VARY, "*".parse().unwrap()); in remove_entry_multi_3_others()
584 headers.insert(VIA, "1.1 example.com".parse().unwrap()); in remove_entry_3_others_a()
585 headers.insert(SET_COOKIE, "cookie_1=value 1".parse().unwrap()); in remove_entry_3_others_a()
586 headers.append(SET_COOKIE, "cookie_2=value 2".parse().unwrap()); in remove_entry_3_others_a()
587 headers.append(VIA, "1.1 other.com".parse().unwrap()); in remove_entry_3_others_a()
588 headers.append(SET_COOKIE, "cookie_3=value 3".parse().unwrap()); in remove_entry_3_others_a()
589 headers.insert(VARY, "*".parse().unwrap()); in remove_entry_3_others_a()
594 assert_eq!(cookie, Some("cookie_1=value 1".parse().unwrap())); in remove_entry_3_others_a()
598 assert_eq!(via, Some("1.1 example.com".parse().unwrap())); in remove_entry_3_others_a()
602 assert_eq!(vary, Some("*".parse().unwrap())); in remove_entry_3_others_a()
609 headers.insert(VIA, "1.1 example.com".parse().unwrap()); in remove_entry_3_others_b()
610 headers.insert(SET_COOKIE, "cookie_1=value 1".parse().unwrap()); in remove_entry_3_others_b()
611 headers.append(SET_COOKIE, "cookie_2=value 2".parse().unwrap()); in remove_entry_3_others_b()
612 headers.append(VIA, "1.1 other.com".parse().unwrap()); in remove_entry_3_others_b()
613 headers.append(SET_COOKIE, "cookie_3=value 3".parse().unwrap()); in remove_entry_3_others_b()
614 headers.insert(VARY, "*".parse().unwrap()); in remove_entry_3_others_b()
619 assert_eq!(vary, Some("*".parse().unwrap())); in remove_entry_3_others_b()
623 assert_eq!(via, Some("1.1 example.com".parse().unwrap())); in remove_entry_3_others_b()
627 assert_eq!(cookie, Some("cookie_1=value 1".parse().unwrap())); in remove_entry_3_others_b()