(path: string, requestInits?: RequestInit)
| 51 | } |
| 52 | |
| 53 | fetch(path: string, requestInits?: RequestInit): Promise<Response> { |
| 54 | if (env().global.fetch != null) { |
| 55 | return env().global.fetch(path, requestInits); |
| 56 | } |
| 57 | |
| 58 | if (systemFetch == null) { |
| 59 | systemFetch = getNodeFetch.importFetch(); |
| 60 | } |
| 61 | return systemFetch(path, requestInits); |
| 62 | } |
| 63 | |
| 64 | now(): number { |
| 65 | const time = process.hrtime(); |