Doc improvements.
authorkoichik <koichik@improvement.jp>
Thu, 28 Apr 2011 07:36:04 +0000 (16:36 +0900)
committerRyan Dahl <ry@tinyclouds.org>
Thu, 28 Apr 2011 08:54:28 +0000 (04:54 -0400)
doc/api/http.markdown
doc/api/https.markdown

index 09efede..6cecc82 100644 (file)
@@ -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.
 
index 3c6a7c4..ff383f7 100644 (file)
@@ -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: