-
Notifications
You must be signed in to change notification settings - Fork 24
Expand file tree
/
Copy pathHTTP.js
More file actions
20 lines (15 loc) · 899 Bytes
/
Copy pathHTTP.js
File metadata and controls
20 lines (15 loc) · 899 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
import http from "node:http";
export const createServer = () => http.createServer();
export const createServerOptsImpl = (opts) => http.createServer(opts);
export const maxHeaderSize = http.maxHeaderSize;
export const requestStrImpl = (url) => http.request(url);
export const requestStrOptsImpl = (url, opts) => http.request(url, opts);
export const requestUrlImpl = (url) => http.request(url);
export const requestUrlOptsImpl = (url, opts) => http.request(url, opts);
export const requestOptsImpl = (opts) => http.request(opts);
export const getStrImpl = (url) => http.get(url);
export const getStrOptsImpl = (url, opts) => http.get(url, opts);
export const getUrlImpl = (url) => http.get(url);
export const getUrlOptsImpl = (url, opts) => http.get(url, opts);
export const getOptsImpl = (opts) => http.get(opts);
export const setMaxIdleHttpParsersImpl = (i) => http.setMaxIdleHTTPParsers(i);