-
Notifications
You must be signed in to change notification settings - Fork 8
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
Registerable mime-types #4
Comments
This could now be done atop #17. With the One snag is that only Finally, a seperate but related issue, should mimetypes be strongly typed? (i.e. have a Thoughts? |
At this point I'd mainly like to note that this functionality is also relevant for responses, not just requests. Personally I am very-pro providing strongly typed values for common MIME types. However, the user needs to be able to set any MIME-type as well (i.e. by just passing a string). |
I was thinking it wouldn't make much sense for it to apply to the I agree that the mimetype list needs to be extensible by the user. But having it as a global which is also extensible is a bad idea imo. One way around that would be template-based dependency injection like what |
I made an example for the above approach: gist. As I mention there, there are a few disadvantages most notably the non-dynamic lookup ability and use of Love to hear your thoughts on it |
I had a look at this - I think that's a pretty good start!
I'm wondering how bad this is gonna be in practice. After all, |
@0x00002a I'm currently revisiting this topic - are you up for a discussion? |
Add an interface to register mime-types.
Something similar to how nginx configuration files allow for
http { types { } }
.The text was updated successfully, but these errors were encountered: