Skip to content

Add a comprehensive MIME registry #4632

Closed
@straight-shoota

Description

@straight-shoota

@asterite on #2470 (comment):

We should probably have some Mime class/module as a registry for this, similar to Go's (since we provide an HTTP::Server in the standard library we will probably want this in the standard library too).

There are three shards who provide a MIME registry:

And ysbaddaden/frost has a extensive MIME registry.

They all rely on a custom mime type database in form of a JSON file included in the shard. While this can be required in some cases, I feel like the stdlib implementation should probably just rely on the mime types registry of the operating system (like the Go example).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions