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

fetch support URL instance as input #3496

Merged
merged 4 commits into from
Dec 14, 2019
Merged

fetch support URL instance as input #3496

merged 4 commits into from
Dec 14, 2019

Conversation

axetroy
Copy link
Contributor

@axetroy axetroy commented Dec 14, 2019

const response = await fetch(new URL('http:https://www.example.com/démonstration.html'));

BTW, the URL implementation does not meet the specification

ref:
https://url.spec.whatwg.org/#api
https://w3c.github.io/FileAPI/#creating-revoking

@kitsonk
Copy link
Contributor

kitsonk commented Dec 14, 2019

The URL implementation was never designed to strictly follow the spec, as it has a lot of obtuse/unnecessary logic. We have just been adjusting it when we hit a case where the behaviour causes problems.

@axetroy
Copy link
Contributor Author

axetroy commented Dec 14, 2019

/cc @ry It's ready fo review

Copy link
Member

@ry ry left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@ry ry merged commit 83f95fb into denoland:master Dec 14, 2019
dnalborczyk added a commit to dnalborczyk/deno that referenced this pull request Dec 19, 2019
bartlomieju pushed a commit to bartlomieju/deno that referenced this pull request Dec 28, 2019
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.

None yet

3 participants