Skip to content

Commit

Permalink
feat(header): Support arbitary status codes
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
pyfisch authored and seanmonstar committed Feb 14, 2015
1 parent e6cae3c commit 7397853
Showing 1 changed file with 472 additions and 1,503 deletions.
Loading

0 comments on commit 7397853

Please sign in to comment.