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

Implement MessageBody for Cow<'static, {[u8], str}> #2959

Merged
merged 1 commit into from
Jan 6, 2023

Conversation

nvzqz
Copy link
Contributor

@nvzqz nvzqz commented Jan 5, 2023

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

This is extends flexibility in the same vein as implementations for &'static [u8], Vet<u8>, &'static str, and String. It can be used to simplify code that conditionally caches message bodies.

This simplifies code that conditionally caches message bodies.
@robjtede robjtede merged commit cfd40b4 into actix:master Jan 6, 2023
@robjtede robjtede added A-http project: actix-http B-semver-minor labels Jan 6, 2023
@robjtede robjtede added this to the actix-web v4.3 milestone Jan 6, 2023
@nvzqz nvzqz deleted the cow-messagebody branch January 6, 2023 21:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-http project: actix-http B-semver-minor
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants