Merge pull request #7843 from electron/process-docs

document the process(es) in which APIs are available
This commit is contained in:
Zeke Sikelianos 2016-11-03 13:14:30 -07:00 committed by GitHub
commit ef9d8fe9bd
29 changed files with 74 additions and 2 deletions

View file

@ -2,6 +2,8 @@
> Issue HTTP/HTTPS requests using Chromium's native networking library
Process: [Main](../tutorial/quick-start.md#main-process)
The `net` module is a client-side API for issuing HTTP(S) requests. It is
similar to the [HTTP](https://nodejs.org/api/http.html) and
[HTTPS](https://nodejs.org/api/https.html) modules of Node.js but uses
@ -72,6 +74,8 @@ specified protocol scheme in the `options` object.
> Make HTTP/HTTPS requests.
Process: [Main](../tutorial/quick-start.md#main-process)
`ClientRequest` implements the [Writable Stream](https://nodejs.org/api/stream.html#stream_writable_streams)
interface and is therefore an [EventEmitter](https://nodejs.org/api/events.html#events_class_eventemitter).
@ -264,6 +268,8 @@ response object,it will emit the `aborted` event.
> Handle responses to HTTP/HTTPS requests.
Process: [Main](../tutorial/quick-start.md#main-process)
`IncomingMessage` implements the [Readable Stream](https://nodejs.org/api/stream.html#stream_readable_streams)
interface and is therefore an [EventEmitter](https://nodejs.org/api/events.html#events_class_eventemitter).