mirror of
https://github.com/denoland/deno.git
synced 2024-12-22 15:24:46 -05:00
expose window.Response (#2515)
This commit is contained in:
parent
42d1024cd9
commit
fdd2eb5383
2 changed files with 3 additions and 4 deletions
|
@ -239,7 +239,7 @@ class Body implements domTypes.Body, domTypes.ReadableStream, io.ReadCloser {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
class Response implements domTypes.Response {
|
export class Response implements domTypes.Response {
|
||||||
readonly url: string = "";
|
readonly url: string = "";
|
||||||
statusText = "FIXME"; // TODO
|
statusText = "FIXME"; // TODO
|
||||||
readonly type = "basic"; // TODO
|
readonly type = "basic"; // TODO
|
||||||
|
|
|
@ -28,7 +28,6 @@ import * as workers from "./workers";
|
||||||
import * as performanceUtil from "./performance";
|
import * as performanceUtil from "./performance";
|
||||||
|
|
||||||
import * as request from "./request";
|
import * as request from "./request";
|
||||||
//import * as response from "./response";
|
|
||||||
|
|
||||||
// These imports are not exposed and therefore are fine to just import the
|
// These imports are not exposed and therefore are fine to just import the
|
||||||
// symbols required.
|
// symbols required.
|
||||||
|
@ -120,8 +119,8 @@ export type TextDecoder = textEncoding.TextDecoder;
|
||||||
window.Request = request.Request as domTypes.RequestConstructor;
|
window.Request = request.Request as domTypes.RequestConstructor;
|
||||||
export type Request = domTypes.Request;
|
export type Request = domTypes.Request;
|
||||||
|
|
||||||
//window.Response = response.Response;
|
window.Response = fetchTypes.Response;
|
||||||
//export type Response = response.Response;
|
export type Response = domTypes.Response;
|
||||||
|
|
||||||
window.performance = new performanceUtil.Performance();
|
window.performance = new performanceUtil.Performance();
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue