hummingbird-project / hummingbird

Lightweight, flexible HTTP server framework written in Swift
Apache License 2.0
1.16k stars 53 forks source link

Make MediaType.Category values public again #498

Closed CallumTodd7 closed 3 months ago

CallumTodd7 commented 3 months ago

485 (accidentally?) set the MediaType.Category values to internal visibility. This PR reverts that change to avoid the need for .init(rawValue: "image")!, etc.

codecov[bot] commented 3 months ago

Codecov Report

Attention: Patch coverage is 63.63636% with 4 lines in your changes missing coverage. Please review.

Project coverage is 83.01%. Comparing base (e78cde7) to head (a3411fa). Report is 92 commits behind head on main.

Files Patch % Lines
Sources/Hummingbird/HTTP/MediaType.swift 63.63% 4 Missing :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #498 +/- ## ========================================== - Coverage 84.86% 83.01% -1.86% ========================================== Files 98 94 -4 Lines 5320 4279 -1041 ========================================== - Hits 4515 3552 -963 + Misses 805 727 -78 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.