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

Add data-url crate #432

Merged
merged 32 commits into from Feb 2, 2018
Merged

Add data-url crate #432

merged 32 commits into from Feb 2, 2018

Conversation

@SimonSapin
Copy link
Member

SimonSapin commented Feb 2, 2018

This is an implementation of https://fetch.spec.whatwg.org/#data-urls. It is independent of the url crate, but it seems within the scope of this repository and I didn’t feel like creating yet another repository :)


This change is Reviewable

SimonSapin added 30 commits Jan 31, 2018
https://fetch.spec.whatwg.org/#data-url-processor

… except for MIME type parsing, which is left to the `mime` crate
and may or may not match the specified parsing algorithm.
web-platform-tests/wpt@126495b

    /fetch/data-urls/resources/data-urls.json
    /fetch/data-urls/resources/base64.json
    /mimesniff/mime-types/resources/mime-types.json
    /mimesniff/mime-types/resources/generated-mime-types.json
… and a custom Rust type for MIME type records,
because the mime crate does not have a constructor from components:
hyperium/mime#78
@nox
Copy link
Member

nox commented Feb 2, 2018

@bors-servo
Copy link
Contributor

bors-servo commented Feb 2, 2018

📌 Commit a6e63fe has been approved by nox

@bors-servo
Copy link
Contributor

bors-servo commented Feb 2, 2018

Testing commit a6e63fe with merge e447349...

bors-servo added a commit that referenced this pull request Feb 2, 2018
Add data-url crate

This is an implementation of https://fetch.spec.whatwg.org/#data-urls. It is independent of the `url` crate, but it seems within the scope of this repository and I didn’t feel like creating yet another repository :)

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/rust-url/432)
<!-- Reviewable:end -->
@bors-servo
Copy link
Contributor

bors-servo commented Feb 2, 2018

☀️ Test successful - status-travis
Approved by: nox
Pushing e447349 to master...

@bors-servo bors-servo merged commit a6e63fe into master Feb 2, 2018
6 checks passed
6 checks passed
continuous-integration/appveyor/branch AppVeyor build succeeded
Details
continuous-integration/appveyor/pr AppVeyor build succeeded
Details
continuous-integration/travis-ci/pr The Travis CI build passed
Details
continuous-integration/travis-ci/push The Travis CI build passed
Details
dependency-ci Dependencies checked
Details
homu Test successful
Details
@SimonSapin SimonSapin deleted the data branch Feb 2, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

3 participants
You can’t perform that action at this time.