Add URL implementation (#1359)

This commit is contained in:
Kitson Kelly 2018-12-18 11:07:47 +10:00 committed by Ryan Dahl
parent 1e54f1d473
commit 91a41ca124
5 changed files with 397 additions and 0 deletions

View file

@ -16,6 +16,7 @@ import * as fetchTypes from "./fetch";
import * as headers from "./headers";
import * as textEncoding from "./text_encoding";
import * as timers from "./timers";
import * as url from "./url";
import * as urlSearchParams from "./url_search_params";
// These imports are not exposed and therefore are fine to just import the
@ -56,6 +57,8 @@ window.Blob = blob.DenoBlob;
export type Blob = blob.DenoBlob;
window.File = file.DenoFile;
export type File = file.DenoFile;
window.URL = url.URL;
export type URL = url.URL;
window.URLSearchParams = urlSearchParams.URLSearchParams;
export type URLSearchParams = urlSearchParams.URLSearchParams;