Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(header): Support arbitary status codes #311

Merged
merged 1 commit into from
Feb 14, 2015
Merged

Conversation

seanmonstar
Copy link
Member

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.

Closes #303

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.
seanmonstar added a commit that referenced this pull request Feb 14, 2015
feat(header): Support arbitary status codes
@seanmonstar seanmonstar merged commit f554c09 into master Feb 14, 2015
@seanmonstar seanmonstar deleted the status-ng branch April 15, 2015 22:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants