Remove remnants of old typed headers (#690)
This commit is contained in:
		
				
					committed by
					
						 Sean McArthur
						Sean McArthur
					
				
			
			
				
	
			
			
			
						parent
						
							dd65fc7c3a
						
					
				
				
					commit
					cfc312f8dd
				
			| @@ -133,31 +133,6 @@ impl RequestBuilder { | |||||||
|         self |         self | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     /// Set a header with a type implementing hyper v0.11's `Header` trait. |  | ||||||
|     /// |  | ||||||
|     /// This method is provided to ease migration, and requires the `hyper-011` |  | ||||||
|     /// Cargo feature enabled on `reqwest`. |  | ||||||
|     #[cfg(feature = "hyper-011")] |  | ||||||
|     pub fn header_011<H>(self, header: H) -> RequestBuilder |  | ||||||
|     where |  | ||||||
|         H: crate::hyper_011::header::Header, |  | ||||||
|     { |  | ||||||
|         let mut headers = crate::hyper_011::Headers::new(); |  | ||||||
|         headers.set(header); |  | ||||||
|         let map = crate::header::HeaderMap::from(headers); |  | ||||||
|         self.headers(map) |  | ||||||
|     } |  | ||||||
|  |  | ||||||
|     /// Set multiple headers using hyper v0.11's `Headers` map. |  | ||||||
|     /// |  | ||||||
|     /// This method is provided to ease migration, and requires the `hyper-011` |  | ||||||
|     /// Cargo feature enabled on `reqwest`. |  | ||||||
|     #[cfg(feature = "hyper-011")] |  | ||||||
|     pub fn headers_011(self, headers: crate::hyper_011::Headers) -> RequestBuilder { |  | ||||||
|         let map = crate::header::HeaderMap::from(headers); |  | ||||||
|         self.headers(map) |  | ||||||
|     } |  | ||||||
|  |  | ||||||
|     /// Enable HTTP basic authentication. |     /// Enable HTTP basic authentication. | ||||||
|     pub fn basic_auth<U, P>(self, username: U, password: Option<P>) -> RequestBuilder |     pub fn basic_auth<U, P>(self, username: U, password: Option<P>) -> RequestBuilder | ||||||
|     where |     where | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user