Skip to content

debug_handler: Check IntoResponseParts / IntoResponse for return tuple element types #2173

@jplatte

Description

@jplatte

In Jon Gjengset's Decrusting the axum crate video, he tried using #[debug_handler] to get a more useful error message for (StatusCode, Json<_>, AppendHeaders<_>) not implementing IntoResponse as part of a handler, but that didn't work. I think we can make it work.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-axum-macrosC-enhancementCategory: A PR with an enhancementE-mediumCall for participation: Experience needed to fix: Medium / intermediate

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions