Skip to content

feat: add Reply.prototype.mediaType - #6932

Merged
climba03003 merged 2 commits into
fastify:mainfrom
LiviaMedeiros:reply-mediatype
Aug 13, 2026
Merged

climba03003 merged 2 commits into
fastify:mainfrom
LiviaMedeiros:reply-mediatype

Conversation

@LiviaMedeiros

Copy link
Copy Markdown
Contributor

Request.prototype.mediaType is a surprisingly useful getter, since it eliminates the urge to use ad hoc Content-Type parsing.

I wonder if we can have it on reply, too.

Checklist

@github-actions github-actions Bot added the documentation Improvements or additions to documentation label Aug 9, 2026
Comment thread test/reply-media-type.test.js
@Eomm Eomm added the semver-minor Issue or PR that should land as semver minor label Aug 10, 2026
Signed-off-by: Livia Medeiros <[email protected]>
@climba03003 climba03003 added the backport 5.x Issue or pr that should be backported to Fastify v5 label Aug 11, 2026
@climba03003
climba03003 merged commit eaff726 into fastify:main Aug 13, 2026
42 checks passed
climba03003 pushed a commit that referenced this pull request Aug 13, 2026
* feat: add `Reply.prototype.mediaType`



* additional test



---------



(cherry picked from commit eaff726)

Signed-off-by: LiviaMedeiros <[email protected]>
Signed-off-by: Livia Medeiros <[email protected]>
Co-authored-by: Livia Medeiros <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport 5.x Issue or pr that should be backported to Fastify v5 documentation Improvements or additions to documentation semver-minor Issue or PR that should land as semver minor

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants