Search
Preparing search index...
The search index is not available
DefinitelyTyped
Inherited
Private
Externals
Only exported
http
ServerResponse
Class ServerResponse
Hierarchy
EventEmitter
Writable
ServerResponse
Index
Constructor methods
constructor
Properties
sendDate
statusCode
writable
Methods
_write
addListener
addTrailers
emit
end
getHeader
listeners
on
once
removeAllListeners
removeHeader
removeListener
setHeader
setMaxListeners
write
writeContinue
writeHead
Constructor methods
constructor
(
opts
?:
WritableOptions
)
:
Writable
Parameters
opts?:
WritableOptions
optional
Returns
Writable
Properties
public
sendDate
:
boolean
public
statusCode
:
number
public
writable
:
boolean
Methods
public
_write
(
data
:
Buffer
, encoding
:
string
, callback
:
Function
)
Parameters
data:
Buffer
encoding:
string
callback:
Function
public
_write
(
data
:
string
, encoding
:
string
, callback
:
Function
)
Parameters
data:
string
encoding:
string
callback:
Function
public
addListener
(
event
:
string
, listener
:
Function
)
:
EventEmitter
Parameters
event:
string
listener:
Function
Returns
EventEmitter
public
addListener
(
event
:
string
, listener
:
Function
)
:
EventEmitter
Parameters
event:
string
listener:
Function
Returns
EventEmitter
public
addTrailers
(
headers
:
any
)
Parameters
headers:
any
public
emit
(
event
:
string
, args
?:
Array<any>
)
:
boolean
Parameters
event:
string
args?:
Array<any>
optional
Returns
boolean
public
emit
(
event
:
string
, args
?:
Array<any>
)
:
boolean
Parameters
event:
string
args?:
Array<any>
optional
Returns
boolean
public
end
(
)
public
end
(
buffer
:
Buffer
, cb
?:
Function
)
Parameters
buffer:
Buffer
cb?:
Function
optional
public
end
(
str
:
string
, cb
?:
Function
)
Parameters
str:
string
cb?:
Function
optional
public
end
(
str
:
string
, encoding
?:
string
, cb
?:
Function
)
Parameters
str:
string
encoding?:
string
optional
cb?:
Function
optional
public
end
(
data
?:
any
, encoding
?:
string
)
Parameters
data?:
any
optional
encoding?:
string
optional
public
getHeader
(
name
:
string
)
:
string
Parameters
name:
string
Returns
string
public
listeners
(
event
:
string
)
:
Array<Function>
Parameters
event:
string
Returns
Array<Function>
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
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
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
removeAllListeners
(
event
?:
string
)
:
EventEmitter
Parameters
event?:
string
optional
Returns
EventEmitter
public
removeHeader
(
name
:
string
)
Parameters
name:
string
public
removeListener
(
event
:
string
, listener
:
Function
)
:
EventEmitter
Parameters
event:
string
listener:
Function
Returns
EventEmitter
public
removeListener
(
event
:
string
, listener
:
Function
)
:
EventEmitter
Parameters
event:
string
listener:
Function
Returns
EventEmitter
public
setHeader
(
name
:
string
, value
:
string
)
Parameters
name:
string
value:
string
public
setMaxListeners
(
n
:
number
)
Parameters
n:
number
public
setMaxListeners
(
n
:
number
)
Parameters
n:
number
public
write
(
buffer
:
Buffer
)
:
boolean
Parameters
buffer:
Buffer
Returns
boolean
public
write
(
buffer
:
Buffer
, cb
?:
Function
)
:
boolean
Parameters
buffer:
Buffer
cb?:
Function
optional
Returns
boolean
public
write
(
str
:
string
, cb
?:
Function
)
:
boolean
Parameters
str:
string
cb?:
Function
optional
Returns
boolean
public
write
(
str
:
string
, encoding
?:
string
, cb
?:
Function
)
:
boolean
Parameters
str:
string
encoding?:
string
optional
cb?:
Function
optional
Returns
boolean
public
write
(
str
:
string
, encoding
?:
string
, fd
?:
string
)
:
boolean
Parameters
str:
string
encoding?:
string
optional
fd?:
string
optional
Returns
boolean
public
write
(
chunk
:
any
, encoding
?:
string
)
:
any
Parameters
chunk:
any
encoding?:
string
optional
Returns
any
public
writeContinue
(
)
public
writeHead
(
statusCode
:
number
, reasonPhrase
?:
string
, headers
?:
any
)
Parameters
statusCode:
number
reasonPhrase?:
string
optional
headers?:
any
optional
public
writeHead
(
statusCode
:
number
, headers
?:
any
)
Parameters
statusCode:
number
headers?:
any
optional
Globals
Highland
NodeJS
assert
buffer
child_process
cluster
crypto
dgram
dns
domain
events
fs
highland
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
ServerRequest
ServerResponse
constructor
sendDate
statusCode
writable
_write
addListener
addTrailers
emit
end
getHeader
listeners
on
once
removeAllListeners
removeHeader
removeListener
setHeader
setMaxListeners
write
writeContinue
writeHead
createClient
createServer
get
request