Search
Preparing search index...
The search index is not available
DefinitelyTyped
Inherited
Private
Externals
Only exported
http
Server
Class Server
Hierarchy
EventEmitter
Server
Index
Properties
maxHeadersCount
Methods
addListener
address
close
emit
listen
listeners
on
once
removeAllListeners
removeListener
setMaxListeners
Properties
public
maxHeadersCount
:
number
Methods
public
addListener
(
event
:
string
, listener
:
Function
)
:
EventEmitter
Parameters
event:
string
listener:
Function
Returns
EventEmitter
public
address
(
)
:
{ port: number; family: string; address: string; }
Returns
{ port: number; family: string; address: string; }
public
close
(
cb
?:
any
)
:
Server
Parameters
cb?:
any
optional
Returns
Server
public
emit
(
event
:
string
, args
?:
Array<any>
)
:
boolean
Parameters
event:
string
args?:
Array<any>
optional
Returns
boolean
public
listen
(
port
:
number
, hostname
?:
string
, backlog
?:
number
, callback
?:
Function
)
:
Server
Parameters
port:
number
hostname?:
string
optional
backlog?:
number
optional
callback?:
Function
optional
Returns
Server
public
listen
(
path
:
string
, callback
?:
Function
)
:
Server
Parameters
path:
string
callback?:
Function
optional
Returns
Server
public
listen
(
handle
:
any
, listeningListener
?:
Function
)
:
Server
Parameters
handle:
any
listeningListener?:
Function
optional
Returns
Server
public
listeners
(
event
:
string
)
:
Array<Function>
Parameters
event:
string
Returns
Array<Function>
public
on
(
event
:
string
, listener
:
Function
)
:
EventEmitter
Parameters
event:
string
listener:
Function
Returns
EventEmitter
public
once
(
event
:
string
, listener
:
Function
)
:
EventEmitter
Parameters
event:
string
listener:
Function
Returns
EventEmitter
public
removeAllListeners
(
event
?:
string
)
:
EventEmitter
Parameters
event?:
string
optional
Returns
EventEmitter
public
removeListener
(
event
:
string
, listener
:
Function
)
:
EventEmitter
Parameters
event:
string
listener:
Function
Returns
EventEmitter
public
setMaxListeners
(
n
:
number
)
Parameters
n:
number
Globals
NodeJS
assert
buffer
child_process
cluster
crypto
dgram
dns
domain
events
fs
http
https
imagemagick
net
os
path
punycode
querystring
readline
repl
stream
string_decoder
tls
tty
url
util
vm
zlib
STATUS_CODES
globalAgent
Agent
ClientRequest
ClientResponse
Server
maxHeadersCount
addListener
address
close
emit
listen
listeners
on
once
removeAllListeners
removeListener
setMaxListeners
ServerRequest
ServerResponse
createClient
createServer
get
request