We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Response::new
u16
http::StatusCode
It makes it hard to use StatusCode::OK or StatusCode::NOT_FOUNT for semantic coding.
StatusCode::OK
StatusCode::NOT_FOUNT
Note that Response::status and Response::set_status are using StatusCode. The new method is quite an inconsistency.
Response::status
Response::set_status
StatusCode
new
The text was updated successfully, but these errors were encountered:
I want to start contributing to tide. Should I change the new function in order to maintain consistency?
Sorry, something went wrong.
This is addressed by #414
No branches or pull requests
It makes it hard to use
StatusCode::OK
orStatusCode::NOT_FOUNT
for semantic coding.Note that
Response::status
andResponse::set_status
are usingStatusCode
.The
new
method is quite an inconsistency.The text was updated successfully, but these errors were encountered: