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

Update available MIMEtypes #764

Open
zetashift opened this issue Jan 31, 2023 · 5 comments
Open

Update available MIMEtypes #764

zetashift opened this issue Jan 31, 2023 · 5 comments

Comments

@zetashift
Copy link
Contributor

Our current list is quite small:

opaque type MIMEType <: String = String
object MIMEType {
val `text/html`: MIMEType = "text/html"
val `text/xml`: MIMEType = "text/xml"
val `application/xml`: MIMEType = "application/xml"
val `application/xhtml+xml`: MIMEType =
"application/xhtml+xml"
val `image/svg+xml`: MIMEType = "image/svg+xml"
}

For common MIME types I've found this: https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types/Common_types

@armanbilge
Copy link
Member

I'm not sure if this is a worthwhile endeavour. We can never have a complete list, and it can become a PITA to maintain. Maybe we should just use String, and deprecate this.

@zetashift
Copy link
Contributor Author

@armanbilge
Copy link
Member

Actually that appears to be a different API 😅

https://developer.mozilla.org/en-US/docs/Web/API/Navigator/mimeTypes

@zetashift
Copy link
Contributor Author

zetashift commented Jan 31, 2023

oops, but you are still right tho!

@zetashift
Copy link
Contributor Author

There is no "will fix by deprecating it" label :P!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants