Skip to content

Conversation

@vinibuzzacaro
Copy link

@vinibuzzacaro vinibuzzacaro commented Nov 11, 2025

PR Type

Refactor

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

Changed the return type of the method content_type of the trait HttpMessage. The tests and other parts of the code that used this method were also updated. I was able to compile the project successfully.

Closes #3797

@JohnTitor JohnTitor added the B-semver-major breaking change requiring a major version bump label Nov 11, 2025
@robjtede robjtede added this to the actix-web v5.0 milestone Nov 11, 2025
@robjtede robjtede added the A-http project: actix-http label Nov 11, 2025
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-major breaking change requiring a major version bump

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Change HttpRequest::content_type to return Option<&str>

3 participants