abort event (http.ClientRequest)

Event: 'abort' function () { } Emitted when the request has been aborted by the client. This event is only emitted on the first call to abort().

tlsSocket.encrypted

tlsSocket.encrypted Static boolean value, always true. May be used to distinguish TLS sockets from regular ones.

readable.push()

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

Script

Class: Script A class for holding precompiled scripts, and running them in specific sandboxes.

response.finished

response.finished Boolean value that indicates whether the response has completed. Starts as false. After response.end() executes, the value will be true.

http.createServer()

http.createServer([requestListener]) Returns a new instance of http.Server. The requestListener is a function which is automatically added to the 'request' event.

crypto.createCipheriv()

crypto.createCipheriv(algorithm, key, iv) Creates and returns a Cipher object, with the given algorithm, key and initialization vector (iv). The algorithm is dependent on OpenSSL, examples are 'aes192', etc. On recent OpenSSL releases, openssl list-cipher-algorithms will display the available cipher algorithms. The key is the raw key used by the algorithm and iv is an initialization vector. Both arguments must be 'binary' encoded strings or buffers.

cluster.fork()

cluster.fork([env]) env <Object> Key/value pairs to add to worker process environment. return <cluster.Worker> Spawn a new worker process. This can only be called from the master process.

ReadStream

Class: ReadStream A net.Socket subclass that represents the readable portion of a tty. In normal circumstances, process.stdin will be the only tty.ReadStream instance in any Node.js program (only when isatty(0) is true).

__filename

__filename {String} The filename of the code being executed. This is the resolved absolute path of this code file. For a main program this is not necessarily the same filename used in the command line. The value inside a module is the path to that module file. Example: running node example.js from /Users/mjr console.log(__filename); // /Users/mjr/example.js __filename isn't actually a global but rather local to each module.