Home
last modified time | relevance | path

Searched refs:createServer (Results 1 – 25 of 1030) sorted by relevance

12345678910>>...42

/third_party/node/test/parallel/
Dtest-net-server-listen-handle.js67 net.createServer()
71 net.createServer()
87 net.createServer()
91 net.createServer()
97 net.createServer()
100 net.createServer()
104 net.createServer()
107 net.createServer()
114 net.createServer()
117 net.createServer()
[all …]
Dtest-http-server-timeouts-validation.js5 const { createServer } = require('http');
10 const server = createServer();
16 const server = createServer({ headersTimeout: 10000, requestTimeout: 20000 });
22 const server = createServer({ headersTimeout: 10000, requestTimeout: 10000 });
28 const server = createServer({ headersTimeout: 10000 });
34 const server = createServer({ requestTimeout: 20000 });
40 const server = createServer({ requestTimeout: 100000 });
47 () => createServer({ headersTimeout: 10000, requestTimeout: 1000 }),
Dtest-net-server-listen-options.js10 net.createServer().listen().on('listening', common.mustCall(close));
12 net.createServer().listen(common.mustCall(close));
14 net.createServer().listen(0).on('listening', common.mustCall(close));
16 net.createServer().listen({ port: 0 })
22 (port, cb) => net.createServer().listen({ port }, cb),
23 (port, cb) => net.createServer().listen(port, cb),
50 net.createServer().listen({ port: -1, path: common.PIPE },
58 net.createServer().listen(options, common.mustNotCall());
Dtest-net-server-listen-path.js27 net.createServer()
35 net.createServer()
43 net.createServer()
50 net.createServer()
58 const server = net.createServer()
76 const server1 = net.createServer().listen({ path: handlePath }, () => {
79 const server2 = net.createServer()
Dtest-https-agent-create-connection.js38 function createServer() { function
39 return https.createServer(options, (req, res) => {
46 const server = createServer();
64 const server = createServer();
79 const server = createServer();
94 const server = createServer();
108 const server = createServer();
123 const server = createServer();
138 const server = createServer();
Dtest-http-default-port.js38 for (const { mod, createServer } of [ field
39 { mod: http, createServer: http.createServer }, property
40 { mod: https, createServer: https.createServer.bind(null, options) }, property
42 const server = createServer(common.mustCall((req, res) => {
Dtest-tls-basic-validations.js20 () => tls.createServer({ ciphers: 1 }),
37 () => tls.createServer({ key: 'dummykey', passphrase: 1 }),
45 () => tls.createServer({ ecdhCurve: 1 }),
53 () => tls.createServer({ handshakeTimeout: 'abcd' }),
63 () => tls.createServer({ sessionTimeout: 'abcd' }),
71 () => tls.createServer({ ticketKeys: 'abcd' }),
78 assert.throws(() => tls.createServer({ ticketKeys: Buffer.alloc(0) }), {
Dtest-tls-no-cert-required.js33 tls.createServer({ ciphers: 'AECDH-NULL-SHA' })
36 tls.createServer(assert.fail)
39 tls.createServer({})
43 () => tls.createServer('this is not valid'),
52 tls.createServer()
Dtest-http2-compat-serverresponse-end.js14 createServer,
26 const server = createServer(mustCall((request, response) => {
65 const server = createServer(mustCall((request, response) => {
93 const server = createServer(mustCall((request, response) => {
124 const server = createServer(mustCall((request, response) => {
151 const server = createServer(mustCall((request, response) => {
190 const server = createServer(mustCall((request, response) => {
219 const server = createServer(mustCall((request, response) => {
254 const server = createServer(mustCall((request, response) => {
289 const server = createServer(mustCall((request, response) => {
[all …]
Dtest-http2-connect.js14 const { createServer, createSecureServer, connect } = require('http2');
20 const server = createServer();
47 const server = createServer();
108 createServer(function() {
133 const server = createServer();
156 const server = createServer();
Dtest-tls-ticket.js40 function createServer() { function
46 const server = tls.createServer({
93 const naturalServers = [ createServer(), createServer(), createServer() ];
99 const shared = net.createServer(function(c) {
Dtest-http-set-timeout-server.js45 const server = http.createServer();
60 const server = http.createServer(common.mustCall((req, res) => {
81 const server = http.createServer(common.mustCall((req, res) => {
98 const server = http.createServer(common.mustCall((req, res) => {
122 const server = http.createServer((req, res) => {
156 const server = http.createServer();
193 const server = http.createServer(common.mustCall((req, res) => {
Dtest-https-set-timeout-server.js55 const server = https.createServer(serverOptions);
71 const server = https.createServer(
95 const server = https.createServer(
115 const server = https.createServer(
142 const server = https.createServer(serverOptions, (req, res) => {
177 const server = https.createServer(serverOptions);
216 const server = https.createServer(serverOptions, common.mustCall(
Dtest-http2-invalidheaderfield.js14 const server = http2.createServer(common.mustCall((req, res) => {
42 const server = http2.createServer();
59 const server = http2.createServer();
75 const server = http2.createServer();
Dtest-http2-client-destroy.js14 const server = h2.createServer();
54 const server = h2.createServer();
107 const server = h2.createServer();
127 const server = h2.createServer();
145 const server = h2.createServer();
173 const server = h2.createServer();
210 const server = h2.createServer();
248 const server = secure ? h2.createSecureServer() : h2.createServer();
291 const server = h2.createServer();
Dtest-http-client-abort-destroy.js10 const server = http.createServer(common.mustCall((req, res) => {
33 const server = http.createServer(common.mustCall((req, res) => {
56 const server = http.createServer(common.mustNotCall());
77 const server = http.createServer(common.mustNotCall());
99 const server = http.createServer(common.mustNotCall());
123 const server = http.createServer(common.mustNotCall());
Dtest-http2-capture-rejection.js9 const { createServer, connect } = require('http2');
17 const server = createServer();
50 const server = createServer();
78 const server = createServer(common.mustCall(async (req, res) => {
107 const server = createServer();
Dtest-http-agent-scheduling.js7 function createServer(count) { function
8 return http.createServer(common.mustCallAtLeast((req, res) => {
47 const server = createServer(8);
74 const server = createServer(8);
102 const server = createServer(8);
Dtest-http2-compat-serverresponse-write.js11 const { createServer, connect } = require('http2');
14 const server = createServer();
51 const server = createServer();
76 const server = createServer();
Dtest-http-response-setheaders.js7 const server = http.createServer({ requireHostHeader: false }, common.mustCall((req, res) => {
29 const server = http.createServer({ requireHostHeader: false }, common.mustCall((req, res) => {
74 const server = http.createServer({ requireHostHeader: false }, common.mustCall((req, res) => {
94 const server = http.createServer({ requireHostHeader: false }, common.mustCall((req, res) => {
114 const server = http.createServer({ requireHostHeader: false }, common.mustCall((req, res) => {
Dtest-net-server-listen-options-signal.js8 const server = net.createServer();
19 const server = net.createServer();
28 const server = net.createServer();
Dtest-http-write-head-2.js9 const server = http.createServer(common.mustCall((req, res) => {
27 const server = http.createServer(common.mustCall((req, res) => {
45 const server = http.createServer(common.mustCall((req, res) => {
64 const server = http.createServer(common.mustCall((req, res) => {
/third_party/node/test/sequential/
Dtest-net-server-bind.js9 const server = net.createServer(common.mustNotCall());
19 const server = net.createServer(common.mustNotCall());
38 const server = net.createServer(common.mustNotCall());
48 const server = net.createServer(common.mustNotCall());
58 const server = net.createServer(common.mustNotCall());
Dtest-net-server-address.js30 const server = net.createServer();
56 const server = net.createServer();
71 const server = net.createServer();
87 const server = net.createServer();
102 const server = net.createServer();
/third_party/node/deps/undici/src/docs/best-practices/
Dproxy.md19 import { createServer } from 'http'
55 const server = createServer()
62 const server = proxy(createServer())
72 import { createServer } from 'http'
115 const server = createServer()
122 const server = proxy(createServer())

12345678910>>...42