File tree Expand file tree Collapse file tree 2 files changed +1
-11
lines changed Expand file tree Collapse file tree 2 files changed +1
-11
lines changed Original file line number Diff line number Diff line change @@ -17,19 +17,15 @@ use std::str::from_utf8;
1717///
1818/// # Example
1919/// ```
20- /// # extern crate hyper;
21- /// # extern crate cookie;
22- /// # fn main() {
2320/// use hyper::header::{Headers, Cookie};
2421///
2522/// let mut headers = Headers::new();
2623///
2724/// headers.set(
2825/// Cookie(vec![
29- /// CookiePair::new ("foo".to_owned(), " bar".to_owned() )
26+ /// String::from ("foo= bar")
3027/// ])
3128/// );
32- /// # }
3329/// ```
3430#[ derive( Clone , PartialEq , Debug ) ]
3531pub struct Cookie ( pub Vec < String > ) ;
Original file line number Diff line number Diff line change @@ -55,11 +55,6 @@ use std::str::from_utf8;
5555///
5656/// # Example
5757/// ```
58- /// # extern crate hyper;
59- /// # extern crate cookie;
60- /// # fn main() {
61- /// // extern crate cookie;
62- ///
6358/// use hyper::header::{Headers, SetCookie};
6459///
6560/// let mut headers = Headers::new();
@@ -69,7 +64,6 @@ use std::str::from_utf8;
6964/// String::from("foo=bar; Path=/path; Domain=example.com")
7065/// ])
7166/// );
72- /// # }
7367/// ```
7468#[ derive( Clone , PartialEq , Debug ) ]
7569pub struct SetCookie ( pub Vec < String > ) ;
You can’t perform that action at this time.
0 commit comments