diff options
author | Kurt Mackey <mrkurt@gmail.com> | 2019-05-01 22:56:42 -0500 |
---|---|---|
committer | Ryan Dahl <ry@tinyclouds.org> | 2019-05-01 23:56:42 -0400 |
commit | c05cbc8eac91a9e1ab9b87c688ac4392eff01445 (patch) | |
tree | cc6e1e2b789ba6626c33523fa488681c86c1a987 /js/globals.ts | |
parent | 1dd30f658fc031dd1d3cdb5b4c435ff0e48740c9 (diff) |
Add Request global constructor (#2253)
Diffstat (limited to 'js/globals.ts')
-rw-r--r-- | js/globals.ts | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/js/globals.ts b/js/globals.ts index 6ebf3ddfd..765215661 100644 --- a/js/globals.ts +++ b/js/globals.ts @@ -26,6 +26,9 @@ import * as urlSearchParams from "./url_search_params"; import * as workers from "./workers"; import * as performanceUtil from "./performance"; +import * as request from "./request"; +//import * as response from "./response"; + // These imports are not exposed and therefore are fine to just import the // symbols required. import { core } from "./core"; @@ -107,6 +110,12 @@ export type TextEncoder = textEncoding.TextEncoder; window.TextDecoder = textEncoding.TextDecoder; export type TextDecoder = textEncoding.TextDecoder; +window.Request = request.Request; +export type Request = request.Request; + +//window.Response = response.Response; +//export type Response = response.Response; + window.performance = new performanceUtil.Performance(); // This variable functioning correctly depends on `declareAsLet` |