Interface

Class: Interface The class that represents a readline interface with an input and output stream.

http_server.timeout

server.timeout <Number> Default = 120000 (2 minutes) The number of milliseconds of inactivity before a socket is presumed to have timed out. Note that the socket timeout logic is set up on connection, so changing this value only affects new connections to the server, not any existing connections. Set to 0 to disable any kind of automatic timeout behavior on incoming connections.

http_server.setTimeout()

server.setTimeout(msecs, callback) msecs <Number> callback <Function> Sets the timeout value for sockets, and emits a 'timeout' event on the Server object, passing the socket as an argument, if a timeout occurs. If there is a 'timeout' event listener on the Server object, then it will be called with the timed-out socket as an argument. By default, the Server's timeout value is 2 minutes, and sockets are destroyed automatically if they time out. However, if you assign a callb

http_server.maxHeadersCount

server.maxHeadersCount Limits maximum incoming headers count, equal to 1000 by default. If set to 0 - no limit will be applied.

http_server.listening

server.listening A Boolean indicating whether or not the server is listening for connections.

http_server.listen()

server.listen(handle[, callback]) handle <Object> callback <Function> The handle object can be set to either a server or socket (anything with an underlying _handle member), or a {fd: <n>} object. This will cause the server to accept connections on the specified handle, but it is presumed that the file descriptor or handle has already been bound to a port or domain socket. Listening on a file descriptor is not supported on Windows. This function is asynchronous. The l

http_server.close()

server.close([callback]) Stops the server from accepting new connections. See net.Server.close().

https_server.timeout

server.timeout See http.Server#timeout.

https_server.setTimeout()

server.setTimeout(msecs, callback) See http.Server#setTimeout().

https.Server

Class: https.Server This class is a subclass of tls.Server and emits events same as http.Server. See http.Server for more information.