aboutsummaryrefslogtreecommitdiff
path: root/src/js/out/modules/node/https.js
blob: 4fbf284d594f5f16543483ddd799c2a3623df294 (plain) (blame)
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
import * as http from "node:http";
var request2 = function(input, options, cb) {
  if (input && typeof input === "object" && !(input instanceof URL))
    input.protocol ??= "https:";
  else if (typeof options === "object")
    options.protocol ??= "https:";
  return http.request(input, options, cb);
}, get = function(input, options, cb) {
  const req = request2(input, options, cb);
  return req.end(), req;
}, {
  Agent,
  Server,
  METHODS,
  STATUS_CODES,
  createServer,
  ServerResponse,
  IncomingMessage,
  maxHeaderSize,
  validateHeaderName,
  validateHeaderValue,
  globalAgent
} = http, defaultExport = {
  Agent,
  Server,
  METHODS,
  STATUS_CODES,
  createServer,
  ServerResponse,
  IncomingMessage,
  request: request2,
  get,
  maxHeaderSize,
  validateHeaderName,
  validateHeaderValue,
  globalAgent
};
var https_default = defaultExport;
export {
  validateHeaderValue,
  validateHeaderName,
  request2 as request,
  maxHeaderSize,
  globalAgent,
  get,
  https_default as default,
  createServer,
  ServerResponse,
  Server,
  STATUS_CODES,
  METHODS,
  IncomingMessage,
  Agent
};