summaryrefslogtreecommitdiff
path: root/doc/api
Commit message (Collapse)AuthorAgeFilesLines
* child_process: js bits for spawnSync/execSyncexecSync-wipTimothy J Fontaine2014-02-101-0/+69
| | | | | | | | | | | This implements the user-facing APIs that lets one run a child process and block until it exits. Some logic that these new functions had in common with the existing spawn/exec/execFile implementation was refactored into separate functions, so it could be shared. Docs and tests are included.
* Merge remote-tracking branch 'upstream/v0.10'Timothy J Fontaine2014-02-084-5/+10
|\ | | | | | | | | | | | | | | | | | | | | Conflicts: deps/v8/src/preparser.cc deps/v8/src/win32-math.h doc/api/http.markdown src/node_buffer.h src/node_crypto.cc src/node_file.cc src/node_http_parser.cc
| * doc: fix diffieHellman.getGenerator() descriptionBrian White2014-02-091-1/+1
| |
| * doc: fix references to error keywordBenjamin Waters2014-02-041-2/+2
| | | | | | | | | | | | | | References for err.signal and err.code should be error.signal and error.code. Fixes joyent/node#6862
| * doc: add an example about multiple extensionsMaxime Quandalle2014-02-031-0/+4
| | | | | | | | `path.extname` returns only the last extension
| * docs: clarify origin in agent.maxSockets sectionWyatt Preul2014-01-291-1/+2
| |
* | src: move AsyncListener from process to tracingTrevor Norris2014-02-052-215/+212
| | | | | | | | | | | | | | The AsyncListener API has been moved into the "tracing" module in order to keep the process object free from unnecessary clutter. Signed-off-by: Timothy J Fontaine <tjfontaine@gmail.com>
* | doc: document the tracing apiTimothy J Fontaine2014-02-053-0/+63
| |
* | tls: more session configuration options, methodsFedor Indutny2014-02-051-0/+22
| | | | | | | | | | | | | | Introduce `ticketKeys` server option, `session` client option, `getSession()` and `getTLSTicket()` methods. fix #7032
* | doc: fix after message in addAsyncListener exampleYuriy Nemtsov2014-02-041-1/+1
| |
* | zlib: separate sync/async methodsFedor Indutny2014-02-041-11/+19
| |
* | zlib: add sync versions for convenience methodsNikolai Vavilov2014-02-011-9/+11
| |
* | Merge remote-tracking branch 'upstream/v0.10'Timothy J Fontaine2014-01-271-0/+20
|\ \ | |/ | | | | | | | | Conflicts: src/node_crypto.cc test/simple/test-crypto.js
| * doc: readline document TTY utilsFedor Indutny2014-01-251-0/+20
| | | | | | | | fix #6933
* | Merge remote-tracking branch 'upstream/v0.10'Timothy J Fontaine2014-01-243-8/+16
|\ \ | |/ | | | | | | | | | | | | | | | | | | | | | | Conflicts: AUTHORS ChangeLog deps/uv/AUTHORS deps/uv/ChangeLog deps/uv/src/unix/process.c deps/uv/src/version.c lib/net.js node.gyp src/node_version.h
| * doc: fix typo in readlineScott González2014-01-241-1/+1
| |
| * doc: clarify Windows signal sending emulationSam Roberts2014-01-161-4/+10
| |
| * doc: describe child_process.fork() silent optionSam Roberts2014-01-161-2/+4
| |
| * doc: child_process.execFile arguments are optionalSam Roberts2014-01-161-1/+1
| |
* | crypto: support custom pbkdf2 digest methodsBen Noordhuis2014-01-221-5/+17
| | | | | | | | | | | | | | | | | | | | Make the HMAC digest method configurable. Update crypto.pbkdf2() and crypto.pbkdf2Sync() to take an extra, optional digest argument. Before this commit, SHA-1 (admittedly the most common method) was used exclusively. Fixes #6553.
* | addons: build and test examplesFedor Indutny2014-01-221-91/+106
| | | | | | | | fix #6910
* | lib: introduce `.setMaxSendFragment(size)`Fedor Indutny2014-01-201-0/+12
| | | | | | | | fix #6889
* | doc: tls: note that SSLv2 is disabled by defaultBen Noordhuis2014-01-201-3/+4
| | | | | | | | | | As of commit 39aa894, SSLv2 support is disabled by default. Update the documentation to reflect that.
* | doc: tls: clarify server cipher listBen Noordhuis2014-01-201-3/+9
| | | | | | | | | | | | | | * Make it clear that ECDHE-RSA-AES128-SHA256 and AES128-GCM-SHA256 are TLS v1.2 ciphers. * Note that RC4 is under suspicion.
* | tls: show human-readable error messagesBen Noordhuis2014-01-171-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Before this commit, verification exceptions had err.message set to the OpenSSL error code (e.g. 'UNABLE_TO_VERIFY_LEAF_SIGNATURE'). This commit moves the error code to err.code and replaces err.message with a human-readable error. Example: // before { message: 'UNABLE_TO_VERIFY_LEAF_SIGNATURE' } // after { code: 'UNABLE_TO_VERIFY_LEAF_SIGNATURE', message: 'unable to verify the first certificate' } UNABLE_TO_VERIFY_LEAF_SIGNATURE is a good example of why you want this: the error code suggests that it's the last certificate that fails to validate while it's actually the first certificate in the chain. Going by the number of mailing list posts and StackOverflow questions, it's a source of confusion to many people.
* | Merge remote-tracking branch 'upstream/v0.10'Timothy J Fontaine2014-01-131-1/+3
|\ \ | |/
| * doc: streams must be open to be passed to childSam Roberts2014-01-131-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | spawn stdio options can be a 'stream', but the following code fails with "Incorrect value for stdio stream: [object Object]", despite being a stream. The problem is the test isn't really for a stream, its for an object with a numeric `.fd` property, and streams do not have an fd until their async 'open' event has occurred. This is reasonable, but was not documented. child_process.spawn('date', [], {stdio: [ 'ignore', fs.createWriteStream('out.txt',{flags:'a'}), 'ignore']})
* | Merge remote-tracking branch 'upstream/v0.10'Timothy J Fontaine2014-01-132-2/+2
|\ \ | |/ | | | | | | | | | | | | | | | | | | Conflicts: deps/uv/ChangeLog deps/uv/build.mk deps/uv/src/version.c deps/uv/test/test-ipc.c deps/v8/src/objects.cc src/node.cc src/node_os.cc
| * doc: Fix argument typo in SimpleProtocol examplegluxon2014-01-101-1/+1
| |
| * doc: fix typo in cluster pageLorenz Leutgeb2014-01-081-1/+1
| |
* | doc: Add forward secrecy section to TLS docsLorenz Leutgeb2014-01-051-9/+30
| | | | | | | | | | This fixes confusion connected to comparison of ECDH with RSA and wrong information on forward secrecy.
* | crypto: introduce .setEngine(engine, [flags])Fedor Indutny2014-01-051-0/+24
| |
* | node: change AsyncListener APITrevor Norris2014-01-031-71/+72
| | | | | | | | | | | | There was a flaw in the old API that has been fixed. Now the asyncListener callback is now the "create" object property in the callback object, and is optional.
* | Merge remote-tracking branch 'upstream/v0.10'Timothy J Fontaine2013-12-312-6/+14
|\ \ | |/
| * doc: document that `process.send` is synchronousMaciej Małecki2013-12-311-0/+5
| | | | | | | | Ref #2598
| * doc: clarify process on exit safe usageTimothy J Fontaine2013-12-311-5/+7
| |
| * docs: process.on('exit') receives exit codeRon Korving2013-12-311-3/+4
| | | | | | | | | | | | The fact that the "exit" event passes the exit code as an argument as omitted from the documentation. This adds the explanation and augments the example code to show that.
| * doc: Fix missing backtick in debugger docDav Glass2013-12-301-1/+1
| |
* | dns: add resolveSoa and 'SOA' rrtypeTuğrul Topuz2013-12-311-4/+32
| | | | | | | | | | You can now query for SOA records by either passing 'SOA' to `resolve` or by using the new `resolveSoa`
* | doc: Fix doc heading for 'response' eventBenjamin Waters2013-12-311-1/+1
| | | | | | | | | | | | Add colon to event heading to ensure it matches other events. Fixes joyent/node#5687
* | doc: Missing word 'are' in documentationBenjamin Waters2013-12-261-1/+1
| | | | | | | | | | | | Fix simple spelling mistake in documentation. fix #5808
* | tls: reintroduce socket.encryptedFedor Indutny2013-12-211-0/+5
| | | | | | | | | | | | Just a property that is always `true` for TLS sockets. fix #6735
* | http: parse the status message in a http response.Cam Swords2013-12-201-0/+6
| |
* | doc: describe the local domain path on WindowsSam Roberts2013-12-191-4/+24
| | | | | | | | | | | | | | | | | | | | The UNIX domain is also known as the LOCAL domain (AF_LOCAL), and node/libuv implements it on Windows using named pipes. The API documentation did not describe the naming rules for named pipes, and also repeatedly described `listen(path)` as being UNIX, which it is not on Windows. Closes #6743
* | Merge remote-tracking branch 'upstream/v0.10'Timothy J Fontaine2013-12-122-3/+4
|\ \ | |/ | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: AUTHORS ChangeLog deps/uv/.mailmap deps/uv/ChangeLog deps/uv/build.mk deps/uv/src/unix/darwin.c deps/uv/src/unix/udp.c deps/uv/src/version.c deps/uv/test/test-list.h src/node_version.h
| * doc: mention `binary` as deafult for Hash stringsMathias Bynens2013-12-111-2/+3
| |
| * doc: "finish" event is on the writable streamGabriel Farrell2013-12-111-1/+1
| |
* | crypto: support GCM authenticated encryption mode.Ingmar Runge2013-12-081-0/+16
| | | | | | | | | | | | | | This adds two new member functions getAuthTag and setAuthTag that are useful for AES-GCM encryption modes. Use getAuthTag after Cipheriv.final, transmit the tag along with the data and use Decipheriv.setAuthTag to have the encrypted data verified.
* | Merge remote-tracking branch 'upstream/v0.10'Timothy J Fontaine2013-12-065-3/+14
|\ \ | |/ | | | | | | | | Conflicts: lib/tls.js src/node.js
| * doc: mention execArgv in setupMasterYazhong Liu2013-12-061-0/+2
| |