Compare commits
	
		
			4 Commits
		
	
	
		
			88b0789254
			...
			master
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
|  | b088466fea | ||
|  | 7c45fd1657 | ||
|  | ee6d3fd5e1 | ||
|  | d05d0a7a93 | 
							
								
								
									
										1
									
								
								.gitignore
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										1
									
								
								.gitignore
									
									
									
									
										vendored
									
									
								
							| @@ -1,6 +1,7 @@ | |||||||
| target | target | ||||||
| Cargo.lock | Cargo.lock | ||||||
| h2spec | h2spec | ||||||
|  | .history | ||||||
|  |  | ||||||
| # These are backup files generated by rustfmt | # These are backup files generated by rustfmt | ||||||
| **/*.rs.bk | **/*.rs.bk | ||||||
|   | |||||||
| @@ -1022,6 +1022,12 @@ impl Builder { | |||||||
|         self |         self | ||||||
|     } |     } | ||||||
|  |  | ||||||
|  |     /// Sets the header table size | ||||||
|  |     pub fn header_table_size(&mut self, size: u32) -> &mut Self { | ||||||
|  |         self.settings.set_header_table_size(Some(size)); | ||||||
|  |         self | ||||||
|  |     } | ||||||
|  |  | ||||||
|     /// Sets the first stream ID to something other than 1. |     /// Sets the first stream ID to something other than 1. | ||||||
|     #[cfg(feature = "unstable")] |     #[cfg(feature = "unstable")] | ||||||
|     pub fn initial_stream_id(&mut self, stream_id: u32) -> &mut Self { |     pub fn initial_stream_id(&mut self, stream_id: u32) -> &mut Self { | ||||||
|   | |||||||
| @@ -686,14 +686,14 @@ impl Iterator for Iter { | |||||||
|                 return Some(Method(method)); |                 return Some(Method(method)); | ||||||
|             } |             } | ||||||
|  |  | ||||||
|             if let Some(scheme) = pseudo.scheme.take() { |  | ||||||
|                 return Some(Scheme(scheme)); |  | ||||||
|             } |  | ||||||
|  |  | ||||||
|             if let Some(authority) = pseudo.authority.take() { |             if let Some(authority) = pseudo.authority.take() { | ||||||
|                 return Some(Authority(authority)); |                 return Some(Authority(authority)); | ||||||
|             } |             } | ||||||
|              |              | ||||||
|  |             if let Some(scheme) = pseudo.scheme.take() { | ||||||
|  |                 return Some(Scheme(scheme)); | ||||||
|  |             } | ||||||
|  |  | ||||||
|             if let Some(path) = pseudo.path.take() { |             if let Some(path) = pseudo.path.take() { | ||||||
|                 return Some(Path(path)); |                 return Some(Path(path)); | ||||||
|             } |             } | ||||||
|   | |||||||
| @@ -121,11 +121,9 @@ impl Settings { | |||||||
|         self.header_table_size |         self.header_table_size | ||||||
|     } |     } | ||||||
|      |      | ||||||
|     /* |  | ||||||
|     pub fn set_header_table_size(&mut self, size: Option<u32>) { |     pub fn set_header_table_size(&mut self, size: Option<u32>) { | ||||||
|         self.header_table_size = size; |         self.header_table_size = size; | ||||||
|     } |     } | ||||||
|     */ |  | ||||||
|  |  | ||||||
|     pub fn load(head: Head, payload: &[u8]) -> Result<Settings, Error> { |     pub fn load(head: Head, payload: &[u8]) -> Result<Settings, Error> { | ||||||
|         use self::Setting::*; |         use self::Setting::*; | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user