Skip to content
This repository has been archived by the owner on Dec 1, 2020. It is now read-only.

Introduce a mime type #19

Open
zoggy opened this issue Mar 20, 2019 · 0 comments
Open

Introduce a mime type #19

zoggy opened this issue Mar 20, 2019 · 0 comments

Comments

@zoggy
Copy link

zoggy commented Mar 20, 2019

Often, only the mime type is used. Would it be possible to define a mime type, and include a value of this type in the contenttype ? This would allow to manipule mime types more easily.

Something like

type mime = (ty, subty)
type content = { mime: mime ; ...}

or if you want to keep a record type:

type mime = { ty : ty ; subty: subty }
type content = { mime: mime ; ...}

Of course it would be great to have mime_of_string, string_of_mime functions, too.

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

No branches or pull requests

1 participant