http-rs / http-rs/http-types

Add `Mime::into_extension`

Open
#271 6 comments 0 reactions 0 assignees View on GitHub
Dominant language
Rust
Stars
209
Forks
91
PR merge metrics
No merged PRs in 30d

Description

Tracking issue: #274

Add a method to try and convert an IANA media type into an extension. This is the inverse of [`Mime::from_extension`](https://docs.rs/http-types/2.7.0/http_types/mime/struct.Mime.html#method.from_extension) which attempts to guess a mime type from an extension.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.