feat(header): Support arbitary status codes
As discussed in #177 hyper must support status code outside the standard range for compatibility reasons. BREAKING CHANGE: This removes unregistered status codes from the enum. Use `FromPrimitive` methods to create them now. StatusCode and StatusClass can no longer be casted to `u16`, use `ToPrimitive` methods now. For example `status.to_u16().unwrap()` to get the status code number.
This commit is contained in:
		
							
								
								
									
										1975
									
								
								src/status.rs
									
									
									
									
									
								
							
							
						
						
									
										1975
									
								
								src/status.rs
									
									
									
									
									
								
							
										
											
												File diff suppressed because it is too large
												Load Diff
											
										
									
								
							
		Reference in New Issue
	
	Block a user