tls_server.maxConnections

server.maxConnections Set this property to reject connections when the server's connection count exceeds the specified threshold.

newSession event (tls.Server)

Event: 'newSession' function (sessionId, sessionData, callback) { } Emitted on creation of a TLS session. May be used to store sessions in external storage. callback must be invoked eventually, otherwise no data will be sent or received from the secure connection. NOTE: adding this event listener will only have an effect on connections established after the addition of the event listener.

eventemitter.listenerCount()

emitter.listenerCount(eventName) eventName <Value> The name of the event being listened for Returns the number of listeners listening to the event named eventName.

response.statusCode

response.statusCode When using implicit headers (not calling response.writeHead() explicitly), this property controls the status code that will be sent to the client when the headers get flushed. Example: response.statusCode = 404; After response header was sent to the client, this property indicates the status code which was sent out.

readable.resume()

Stability: 2 - Stable A stream is an abstract interface implemented by various objects in Node.js. For example a request to an HTTP server is a stream, as is process.stdout. Streams are readable, writable, or both. All streams are instances of EventEmitter. You can load the Stream base classes by doing require('stream'). There are base classes provided for Readable streams, Writable streams, Duplex streams, and Transform streams. This document is split up into 3 sections: The first section e

readable.pause()

Stability: 2 - Stable A stream is an abstract interface implemented by various objects in Node.js. For example a request to an HTTP server is a stream, as is process.stdout. Streams are readable, writable, or both. All streams are instances of EventEmitter. You can load the Stream base classes by doing require('stream'). There are base classes provided for Readable streams, Writable streams, Duplex streams, and Transform streams. This document is split up into 3 sections: The first section e

querystring.escape

querystring.escape The escape function used by querystring.stringify, provided so that it could be overridden if necessary.

util.isFunction()

util.isFunction(object) Stability: 0 - Deprecated Returns true if the given "object" is a Function. Otherwise, returns false. const util = require('util'); function Foo() {} var Bar = function() {}; util.isFunction({}) // false util.isFunction(Foo) // true util.isFunction(Bar) // true

fs.fchown()

fs.fchown(fd, uid, gid, callback) Asynchronous fchown(2). No arguments other than a possible exception are given to the completion callback.

tls_server.addContext()

server.addContext(hostname, context) Add secure context that will be used if the client request's SNI hostname matches the supplied hostname (wildcards can be used). context can contain key, cert, ca or any other properties from tls.createSecureContext() options argument.