Class node.http.Server

Class Summary
Constructor Attributes Constructor Name and Description
 
This is an EventEmitter with the following events:
Field Summary
Field Attributes Field Name and Description
 
 
 
 

Method Summary

Method Attributes Method Name and Description
 
addListener(type, listener)
 
 
Stops the server from accepting new connections.
 
emit(type)
 
Start a UNIX socket server listening for connections on the given path.
 
listeners(type)
 
listenFD(fd, type)
 
on(type, listener)
 
once(type, listener)
 
pause(msecs)
 
 
removeListener(type, listener)
 

Class Detail

node.http.Server()
This is an EventEmitter with the following events:

Field Detail

allowHalfOpen
connections
httpAllowHalfOpen
watcher

Method Detail

  • addListener(type, listener)
    Parameters:
    {string} type
    {string} listener
  • address()
  • close()
    Stops the server from accepting new connections.
  • emit(type)
    Parameters:
    {string} type
  • listen()
    Start a UNIX socket server listening for connections on the given path. This function is asynchronous. The last parameter callback will be called when the server has been bound.
  • listeners(type)
    Parameters:
    {string} type
  • listenFD(fd, type)
    Parameters:
    {string} fd
    {string} type
  • on(type, listener)
    Parameters:
    {string} type
    {string} listener
  • once(type, listener)
    Parameters:
    {string} type
    {string} listener
  • pause(msecs)
    Parameters:
    {string} msecs
  • removeAllListeners(type)
    Parameters:
    {string} type
  • removeListener(type, listener)
    Parameters:
    {string} type
    {string} listener
  • setMaxListeners(n)
    Parameters:
    {string} n