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

Add struct NoContent as a self-described shortcut #2978

Merged
merged 1 commit into from
Oct 11, 2024

Commits on Oct 11, 2024

  1. Add struct NoContent as a self-described shortcut

    We cannot change the behavior of `<() as IntoResponse>::into_response`,
    so add a newtype struct to explicitly use 204 No Content status.
    
    Refs: tokio-rs#2363, tokio-rs#2393
    oxalica committed Oct 11, 2024
    Configuration menu
    Copy the full SHA
    d5f9bd0 View commit details
    Browse the repository at this point in the history