Search
Preparing search index...
The search index is not available
DefinitelyTyped
Inherited
Private
Externals
Only exported
http
Server
Interface Server
Hierarchy
NodeEventEmitter
Server
Index
Properties
maxHeadersCount
Methods
addListener
close
emit
listen
listeners
on
once
removeAllListener
removeListener
setMaxListeners
Properties
public
maxHeadersCount
:
number
Methods
public
addListener
(
event
:
string
, listener
:
Function
)
:
any
Parameters
event:
string
listener:
Function
Returns
any
public
close
(
cb
?:
any
)
Parameters
cb?:
any
optional
public
emit
(
event
:
string
, arg1
?:
any
, arg2
?:
any
)
Parameters
event:
string
arg1?:
any
optional
arg2?:
any
optional
public
listen
(
port
:
number
, hostname
?:
string
, backlog
?:
number
, callback
?:
Function
)
Parameters
port:
number
hostname?:
string
optional
backlog?:
number
optional
callback?:
Function
optional
public
listen
(
path
:
string
, callback
?:
Function
)
Parameters
path:
string
callback?:
Function
optional
public
listen
(
handle
:
any
, listeningListener
?:
Function
)
Parameters
handle:
any
listeningListener?:
Function
optional
public
listeners
(
event
:
string
)
:
Array<{ Function: any; }>
Parameters
event:
string
Returns
Array<{ Function: any; }>
public
on
(
event
:
string
, listener
:
Function
)
:
any
Parameters
event:
string
listener:
Function
Returns
any
public
once
(
event
:
string
, listener
:
Function
)
Parameters
event:
string
listener:
Function
public
removeAllListener
(
event
:
string
)
Parameters
event:
string
public
removeListener
(
event
:
string
, listener
:
Function
)
Parameters
event:
string
listener:
Function
public
setMaxListeners
(
n
:
number
)
Parameters
n:
number
Globals
assert
child_process
cluster
crypto
dgram
dns
domain
events
fs
http
https
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
close
emit
listen
listeners
on
once
removeAllListener
removeListener
setMaxListeners
ServerRequest
ServerResponse
createClient
createServer
get
request