Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Once upon a time deno.land/x/media_types was inside
std
but it was removed due to there being a debate about the API and I took over maintaining it.The PR intends to reverse this and will result in a series of PRs brining some of the common APIs common to handling HTTP requests into the std library.
@lucacasonato this includes the GoLang
mime
package APIs as well as some parts of thejshttp/mime-types
APIs thatdeno.land/x/media_types
was based on. It should provide an easy migration path for users ofdeno.land/x/media_types
but also provide more logical APIs aligned to what is in GoLang.Once this is landed, a subsequent PR should be created so the fileserver uses this instead of it partial mime db. I will also refactor oak and my other projects to use this as well.