Skip to content
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.

Commit

Permalink
Doc improvements.
Browse files Browse the repository at this point in the history
  • Loading branch information
koichik authored and ry committed Apr 28, 2011
1 parent 7c6f014 commit 1343ee8
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
2 changes: 1 addition & 1 deletion doc/api/http.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down
10 changes: 9 additions & 1 deletion doc/api/https.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -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:

Expand Down

0 comments on commit 1343ee8

Please sign in to comment.