Search
Preparing search index...
The search index is not available
DefinitelyTyped
Inherited
Private
Externals
Only exported
restify
Server
Class Server
Hierarchy
Server
Server
Index
Properties
acceptable
address
log
maxHeadersCount
name
url
version
Methods
addListener
close
del
emit
get
head
listen
listeners
on
once
patch
post
pre
put
removeAllListeners
removeListener
setMaxListeners
use
Properties
public
acceptable
:
Array<string>
public
address
:
() => "restify".addressInterface
public
log
:
Object
public
maxHeadersCount
:
number
public
name
:
string
public
url
:
string
public
version
:
string
Methods
public
addListener
(
event
:
string
, listener
:
Function
)
:
EventEmitter
Parameters
event:
string
listener:
Function
Returns
EventEmitter
public
close
(
args
?:
Array<any>
)
:
any
Parameters
args?:
Array<any>
optional
Returns
any
public
del
(
route
:
any
, routeCallBack
:
RequestHandler
, routeCallBacks
?:
RequestHandler
[]
)
:
any
Parameters
route:
any
routeCallBack:
RequestHandler
routeCallBacks?:
RequestHandler
[]
optional
Returns
any
public
del
(
route
:
any
, routeCallBack
:
RequestHandler
[]
, routeCallBacks
?:
RequestHandler
[]
)
:
any
Parameters
route:
any
routeCallBack:
RequestHandler
[]
routeCallBacks?:
RequestHandler
[]
optional
Returns
any
public
del
(
route
:
any
, routeCallBack
:
RequestHandler
, routeCallBacks
?:
Array<"restify".RequestHandler[]>
)
:
any
Parameters
route:
any
routeCallBack:
RequestHandler
routeCallBacks?:
Array<"restify".RequestHandler[]>
optional
Returns
any
public
del
(
route
:
any
, routeCallBack
:
RequestHandler
[]
, routeCallBacks
?:
Array<"restify".RequestHandler[]>
)
:
any
Parameters
route:
any
routeCallBack:
RequestHandler
[]
routeCallBacks?:
Array<"restify".RequestHandler[]>
optional
Returns
any
public
emit
(
event
:
string
, args
?:
Array<any>
)
:
boolean
Parameters
event:
string
args?:
Array<any>
optional
Returns
boolean
public
get
(
route
:
any
, routeCallBack
:
RequestHandler
, routeCallBacks
?:
RequestHandler
[]
)
:
any
Parameters
route:
any
routeCallBack:
RequestHandler
routeCallBacks?:
RequestHandler
[]
optional
Returns
any
public
get
(
route
:
any
, routeCallBack
:
RequestHandler
[]
, routeCallBacks
?:
RequestHandler
[]
)
:
any
Parameters
route:
any
routeCallBack:
RequestHandler
[]
routeCallBacks?:
RequestHandler
[]
optional
Returns
any
public
get
(
route
:
any
, routeCallBack
:
RequestHandler
, routeCallBacks
?:
Array<"restify".RequestHandler[]>
)
:
any
Parameters
route:
any
routeCallBack:
RequestHandler
routeCallBacks?:
Array<"restify".RequestHandler[]>
optional
Returns
any
public
get
(
route
:
any
, routeCallBack
:
RequestHandler
[]
, routeCallBacks
?:
Array<"restify".RequestHandler[]>
)
:
any
Parameters
route:
any
routeCallBack:
RequestHandler
[]
routeCallBacks?:
Array<"restify".RequestHandler[]>
optional
Returns
any
public
head
(
route
:
any
, routeCallBack
:
RequestHandler
, routeCallBacks
?:
RequestHandler
[]
)
:
any
Parameters
route:
any
routeCallBack:
RequestHandler
routeCallBacks?:
RequestHandler
[]
optional
Returns
any
public
head
(
route
:
any
, routeCallBack
:
RequestHandler
[]
, routeCallBacks
?:
RequestHandler
[]
)
:
any
Parameters
route:
any
routeCallBack:
RequestHandler
[]
routeCallBacks?:
RequestHandler
[]
optional
Returns
any
public
head
(
route
:
any
, routeCallBack
:
RequestHandler
, routeCallBacks
?:
Array<"restify".RequestHandler[]>
)
:
any
Parameters
route:
any
routeCallBack:
RequestHandler
routeCallBacks?:
Array<"restify".RequestHandler[]>
optional
Returns
any
public
head
(
route
:
any
, routeCallBack
:
RequestHandler
[]
, routeCallBacks
?:
Array<"restify".RequestHandler[]>
)
:
any
Parameters
route:
any
routeCallBack:
RequestHandler
[]
routeCallBacks?:
Array<"restify".RequestHandler[]>
optional
Returns
any
public
listen
(
args
?:
Array<any>
)
:
any
Parameters
args?:
Array<any>
optional
Returns
any
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
patch
(
route
:
any
, routeCallBack
:
RequestHandler
, routeCallBacks
?:
RequestHandler
[]
)
:
any
Parameters
route:
any
routeCallBack:
RequestHandler
routeCallBacks?:
RequestHandler
[]
optional
Returns
any
public
patch
(
route
:
any
, routeCallBack
:
RequestHandler
[]
, routeCallBacks
?:
RequestHandler
[]
)
:
any
Parameters
route:
any
routeCallBack:
RequestHandler
[]
routeCallBacks?:
RequestHandler
[]
optional
Returns
any
public
patch
(
route
:
any
, routeCallBack
:
RequestHandler
, routeCallBacks
?:
Array<"restify".RequestHandler[]>
)
:
any
Parameters
route:
any
routeCallBack:
RequestHandler
routeCallBacks?:
Array<"restify".RequestHandler[]>
optional
Returns
any
public
patch
(
route
:
any
, routeCallBack
:
RequestHandler
[]
, routeCallBacks
?:
Array<"restify".RequestHandler[]>
)
:
any
Parameters
route:
any
routeCallBack:
RequestHandler
[]
routeCallBacks?:
Array<"restify".RequestHandler[]>
optional
Returns
any
public
post
(
route
:
any
, routeCallBack
:
RequestHandler
, routeCallBacks
?:
RequestHandler
[]
)
:
any
Parameters
route:
any
routeCallBack:
RequestHandler
routeCallBacks?:
RequestHandler
[]
optional
Returns
any
public
post
(
route
:
any
, routeCallBack
:
RequestHandler
[]
, routeCallBacks
?:
RequestHandler
[]
)
:
any
Parameters
route:
any
routeCallBack:
RequestHandler
[]
routeCallBacks?:
RequestHandler
[]
optional
Returns
any
public
post
(
route
:
any
, routeCallBack
:
RequestHandler
, routeCallBacks
?:
Array<"restify".RequestHandler[]>
)
:
any
Parameters
route:
any
routeCallBack:
RequestHandler
routeCallBacks?:
Array<"restify".RequestHandler[]>
optional
Returns
any
public
post
(
route
:
any
, routeCallBack
:
RequestHandler
[]
, routeCallBacks
?:
Array<"restify".RequestHandler[]>
)
:
any
Parameters
route:
any
routeCallBack:
RequestHandler
[]
routeCallBacks?:
Array<"restify".RequestHandler[]>
optional
Returns
any
public
pre
(
routeCallBack
:
RequestHandler
)
:
any
Parameters
routeCallBack:
RequestHandler
Returns
any
public
put
(
route
:
any
, routeCallBack
:
RequestHandler
, routeCallBacks
?:
RequestHandler
[]
)
:
any
Parameters
route:
any
routeCallBack:
RequestHandler
routeCallBacks?:
RequestHandler
[]
optional
Returns
any
public
put
(
route
:
any
, routeCallBack
:
RequestHandler
[]
, routeCallBacks
?:
RequestHandler
[]
)
:
any
Parameters
route:
any
routeCallBack:
RequestHandler
[]
routeCallBacks?:
RequestHandler
[]
optional
Returns
any
public
put
(
route
:
any
, routeCallBack
:
RequestHandler
, routeCallBacks
?:
Array<"restify".RequestHandler[]>
)
:
any
Parameters
route:
any
routeCallBack:
RequestHandler
routeCallBacks?:
Array<"restify".RequestHandler[]>
optional
Returns
any
public
put
(
route
:
any
, routeCallBack
:
RequestHandler
[]
, routeCallBacks
?:
Array<"restify".RequestHandler[]>
)
:
any
Parameters
route:
any
routeCallBack:
RequestHandler
[]
routeCallBacks?:
Array<"restify".RequestHandler[]>
optional
Returns
any
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
public
use
(
handler
:
RequestHandler
, handlers
?:
RequestHandler
[]
)
:
any
Parameters
handler:
RequestHandler
handlers?:
RequestHandler
[]
optional
Returns
any
public
use
(
handler
:
RequestHandler
[]
, handlers
?:
RequestHandler
[]
)
:
any
Parameters
handler:
RequestHandler
[]
handlers?:
RequestHandler
[]
optional
Returns
any
public
use
(
handler
:
RequestHandler
, handlers
?:
Array<"restify".RequestHandler[]>
)
:
any
Parameters
handler:
RequestHandler
handlers?:
Array<"restify".RequestHandler[]>
optional
Returns
any
public
use
(
handler
:
RequestHandler
[]
, handlers
?:
Array<"restify".RequestHandler[]>
)
:
any
Parameters
handler:
RequestHandler
[]
handlers?:
Array<"restify".RequestHandler[]>
optional
Returns
any
Globals
NodeJS
assert
buffer
child_process
cluster
crypto
dgram
dns
domain
events
fs
http
https
net
os
path
punycode
querystring
readline
repl
restify
restify.pre
stream
string_decoder
tls
tty
url
util
vm
zlib
CORS
defaultResponseHeaders
Client
ClientOptions
HttpClient
Next
RequestHandler
ServerOptions
ThrottleOptions
addressInterface
BadDigestError
BadMethodError
BadRequestError
ConflictError
InternalError
InvalidArgumentError
InvalidContentError
InvalidCredentialsError
InvalidHeaderError
InvalidVersionError
MissingParameterError
NotAuthorizedError
Request
RequestExpiredError
RequestThrottledError
ResourceNotFoundError
Response
RestError
Server
acceptable
address
log
maxHeadersCount
name
url
version
addListener
close
del
emit
get
head
listen
listeners
on
once
patch
post
pre
put
removeAllListeners
removeListener
setMaxListeners
use
WrongAcceptError
acceptParser
auditLogger
authorizationParser
bodyParser
conditionalRequest
createClient
createJsonClient
createServer
createStringClient
dateParser
fullResponse
gzipResponse
jsonp
queryParser
requestLogger
serveStatic
throttle
urlEncodedBodyParser