You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
carllerche opened this issue
Jul 21, 2018
· 2 comments
· May be fixed by #451
Labels
A-statusArea: Status CodesB-rfcBlocked: request for comments. More discussion would help move this along.S-featureSeverity: feature. This adds something new.
The title says toStatusCode, so it this StatusCode::try_from(usize), etc?
I'm -0. I think asking people to realize that a status code is a u16 is useful, and people can convert their number into one themselves. However, I guess it's helpful for things like the response::Builder, so a user who received something like a u32 can just pass it, instead of possibly casting incorrectly.
A-statusArea: Status CodesB-rfcBlocked: request for comments. More discussion would help move this along.S-featureSeverity: feature. This adds something new.
Currently, it is only
u16
. For convenience, it would be nice to implement conversions for other num types:usize
,u32
,u64
.The text was updated successfully, but these errors were encountered: