Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Implement MimeType parser and class #836

Merged
merged 4 commits into from
Jul 5, 2023

Conversation

jasnell
Copy link
Member

@jasnell jasnell commented Jul 4, 2023

Implements Node.js MIMEType API. Implemented in C++ because this also addresses a number of internal TODOs by implementing a proper MIME type parser internally.

@jasnell jasnell requested review from mikea, irvinebroque and ohodson July 4, 2023 19:58
@jasnell jasnell force-pushed the jsnell/nodejs-compat-util-mimetype branch from d650c22 to 6d81d2f Compare July 4, 2023 20:30
src/workerd/util/strings.h Outdated Show resolved Hide resolved
src/workerd/util/mimetype.h Outdated Show resolved Hide resolved
src/workerd/api/http.c++ Outdated Show resolved Hide resolved
src/node/internal/util.d.ts Outdated Show resolved Hide resolved
@ohodson
Copy link
Contributor

ohodson commented Jul 5, 2023

LGTM modulo test failure resolution.

@jasnell jasnell force-pushed the jsnell/nodejs-compat-util-mimetype branch 3 times, most recently from 2e64c72 to c3cef34 Compare July 5, 2023 14:56
@jasnell jasnell requested a review from ohodson July 5, 2023 14:57
@jasnell jasnell force-pushed the jsnell/nodejs-compat-util-mimetype branch from c3cef34 to a42e996 Compare July 5, 2023 15:26
@jasnell jasnell merged commit 027b372 into main Jul 5, 2023
@fhanau fhanau deleted the jsnell/nodejs-compat-util-mimetype branch December 4, 2023 22:20
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants