Skip to content

Consider using middlewares more efficiently #123

Closed

Description

@m4tx

Right now we're doing IntoCotResponse and IntoErrorResponse on each middleware that's being added to the project. While the overhead might not be terrible, it should be measured and if it turns out to be significant, it might be worth considering if changing the APIs is needed. One idea is to make sure that whatever gets passed into middleware() already has proper Response and Error types, and provide some conversion functionalities if not.

Activity

  1. added
    enhancement
    on Feb 5, 2025
  2. added this to the v1.0 milestone on Dec 24, 2025
  3. locked and limited conversation to collaborators on Mar 23, 2026
  4. converted this issue into a discussion #527 on Mar 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions