-
Notifications
You must be signed in to change notification settings - Fork 30
/
Copy pathhttps.ts
33 lines (26 loc) · 927 Bytes
/
https.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
// https://nodejs.org/api/https.html
import type nodeHttps from "node:https";
import { notImplemented, notImplementedClass } from "../_internal/utils.ts";
import { Agent as HttpAgent } from "./internal/http/agent.ts";
export const Server: typeof nodeHttps.Server =
/*@__PURE__*/ notImplementedClass("https.Server");
export const Agent: typeof nodeHttps.Agent =
HttpAgent as unknown as typeof nodeHttps.Agent;
export const globalAgent: typeof nodeHttps.globalAgent =
/*@__PURE__*/ new Agent();
export const get =
/*@__PURE__*/ notImplemented<typeof nodeHttps.get>("https.get");
export const createServer =
/*@__PURE__*/ notImplemented<typeof nodeHttps.createServer>(
"https.createServer",
);
export const request =
/*@__PURE__*/ notImplemented<typeof nodeHttps.request>("https.request");
export default {
Server,
Agent,
globalAgent,
get,
createServer,
request,
} satisfies typeof nodeHttps;