diff options
author | koichik <koichik@improvement.jp> | 2011-04-28 16:36:04 +0900 |
---|---|---|
committer | Ryan Dahl <ry@tinyclouds.org> | 2011-04-28 04:54:28 -0400 |
commit | 1343ee8d54f1743b19e5b70b8f377ec65508f9a6 (patch) | |
tree | 457fefd212c6c3f053643a8af789f33682a60617 /doc | |
parent | 7c6f0147dfa78641a65c7cb0d84f6723b29a946e (diff) | |
download | android-node-v8-1343ee8d54f1743b19e5b70b8f377ec65508f9a6.tar.gz android-node-v8-1343ee8d54f1743b19e5b70b8f377ec65508f9a6.tar.bz2 android-node-v8-1343ee8d54f1743b19e5b70b8f377ec65508f9a6.zip |
Doc improvements.
Diffstat (limited to 'doc')
-rw-r--r-- | doc/api/http.markdown | 2 | ||||
-rw-r--r-- | doc/api/https.markdown | 10 |
2 files changed, 10 insertions, 2 deletions
diff --git a/doc/api/http.markdown b/doc/api/http.markdown index 09efedebf7..6cecc821cf 100644 --- a/doc/api/http.markdown +++ b/doc/api/http.markdown @@ -88,7 +88,7 @@ sent to the server on that socket. If a client connection emits an 'error' event - it will forwarded here. -### http.createServer(requestListener) +### http.createServer([requestListener]) Returns a new web server object. diff --git a/doc/api/https.markdown b/doc/api/https.markdown index 3c6a7c43a0..ff383f7d39 100644 --- a/doc/api/https.markdown +++ b/doc/api/https.markdown @@ -4,7 +4,15 @@ HTTPS is the HTTP protocol over TLS/SSL. In Node this is implemented as a separate module. ## https.Server -## https.createServer + +This class is a subclass of `tls.Server` and emits events same as +`http.Server`. See `http.Server` for more information. + +## https.createServer(options, [requestListener]) + +Returns a new HTTPS web server object. The `options` is similer to +`tls.createServer()`. The `requestListener` is a function which is +automatically added to the `'request'` event. Example: |