()
| 43 | util: any; |
| 44 | |
| 45 | constructor() { |
| 46 | // tslint:disable-next-line:no-require-imports |
| 47 | this.util = require('util'); |
| 48 | // According to the spec, the built-in encoder can do only UTF-8 encoding. |
| 49 | // https://developer.mozilla.org/en-US/docs/Web/API/TextEncoder/TextEncoder |
| 50 | this.textEncoder = new this.util.TextEncoder(); |
| 51 | } |
| 52 | |
| 53 | fetch(path: string, requestInits?: RequestInit): Promise<Response> { |
| 54 | if (env().global.fetch != null) { |
nothing calls this directly
no outgoing calls
no test coverage detected