Skip to content
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

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 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants