continue event (http.ClientRequest)

Event: 'continue' function () { } Emitted when the server sends a '100 Continue' HTTP response, usually because the request contained 'Expect: 100-continue'. This is an instruction that the client should send the request body.

fs.write()

fs.write(fd, buffer, offset, length[, position], callback) Write buffer to the file specified by fd. offset and length determine the part of the buffer to be written. position refers to the offset from the beginning of the file where this data should be written. If typeof position !== 'number', the data will be written at the current position. See pwrite(2). The callback will be given three arguments (err, written, buffer) where written specifies how many bytes were written from buffer. Not

Domain

Class: Domain The Domain class encapsulates the functionality of routing errors and uncaught exceptions to the active Domain object. Domain is a child class of EventEmitter. To handle the errors that it catches, listen to its 'error' event.

response.end()

response.end([data][, encoding][, callback]) This method signals to the server that all of the response headers and body have been sent; that server should consider this message complete. The method, response.end(), MUST be called on each response. If data is specified, it is equivalent to calling response.write(data, encoding) followed by response.end(callback). If callback is specified, it will be called when the response stream is finished.

crypto.createHmac()

crypto.createHmac(algorithm, key) Creates and returns an Hmac object that uses the given algorithm and key. The algorithm is dependent on the available algorithms supported by the version of OpenSSL on the platform. Examples are 'sha256', 'sha512', etc. On recent releases of OpenSSL, openssl list-message-digest-algorithms will display the available digest algorithms. The key is the HMAC key used to generate the cryptographic HMAC hash. Example: generating the sha256 HMAC of a file const fil

dgram_socket.dropMembership()

socket.dropMembership(multicastAddress[, multicastInterface]) multicastAddress <String> multicastInterface <String>, Optional Instructs the kernel to leave a multicast group at multicastAddress using the IP_DROP_MEMBERSHIP socket option. This method is automatically called by the kernel when the socket is closed or the process terminates, so most apps will never have reason to call this. If multicastInterface is not specified, the operating system will attempt to drop membersh

cluster.worker

cluster.worker <Object> A reference to the current worker object. Not available in the master process. const cluster = require('cluster'); if (cluster.isMaster) { console.log('I am master'); cluster.fork(); cluster.fork(); } else if (cluster.isWorker) { console.log(`I am worker #${cluster.worker.id}`); }

fs.ftruncate()

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

os.homedir()

os.homedir() Returns the home directory of the current user.

buffer.readFloatLE()

buf.readFloatLE(offset[, noAssert]) offset <Number> 0 <= offset <= buf.length - 4 noAssert <Boolean> Default: false Return: <Number> Reads a 32-bit float from the Buffer at the specified offset with specified endian format (readFloatBE() returns big endian, readFloatLE() returns little endian). Setting noAssert to true skips validation of the offset. This allows the offset to be beyond the end of the Buffer. const buf = Buffer.from([1,2,3,4]); buf.readFloatBE();