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

allow any body type in Scope #2523

Merged
merged 3 commits into from
Dec 22, 2021
Merged

Conversation

aliemjay
Copy link
Member

@aliemjay aliemjay commented Dec 17, 2021

PR Type

Feature

PR Checklist

  • Tests for the changes have been added / updated.
  • Documentation comments have been added / updated.
  • A changelog entry has been made for the appropriate packages.
  • Format code with the latest stable rustfmt.
  • (Team) Label with affected crates and semver status.

Overview

Given that double boxing can be avoided with MessageBody::boxed, I think it is reasonable to implicitely box the response body type.

I understand that this is controversial to have, so I'm open to any opinion.

@aliemjay aliemjay changed the title make scope accept any MessageBody allow any body type in Scope Dec 22, 2021
@robjtede robjtede merged commit 7b1512d into actix:master Dec 22, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-web project: actix-web B-semver-minor
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants