Search
Preparing search index...
The search index is not available
DefinitelyTyped
Inherited
Private
Externals
Only exported
restify
Request
Class Request
Hierarchy
ServerRequest
Request
Index
Constructor methods
constructor
Properties
accepts
body
connection
contentLength
contentType
getLogger
header
headers
href
httpVersion
id
is
log
method
params
path
query
readable
secure
time
trailers
url
Methods
_read
addListener
emit
listeners
on
once
pause
pipe
push
read
removeAllListeners
removeListener
resume
setEncoding
setMaxListeners
unpipe
unshift
wrap
Constructor methods
constructor
(
opts
?:
ReadableOptions
)
:
Readable
Parameters
opts?:
ReadableOptions
optional
Returns
Readable
Properties
public
accepts
:
(type: string) => boolean
optional
public
body
?:
any
public
connection
:
Socket
public
contentLength
:
number
public
contentType
:
string
public
getLogger
:
(component: string) => any
public
header
:
(key: string, defaultValue?: string) => any
public
headers
:
any
public
href
:
() => string
public
httpVersion
:
string
public
id
:
string
public
is
:
(type: string) => boolean
public
log
:
Object
public
method
:
string
public
params
:
any
public
path
:
() => string
public
query
:
any
public
readable
:
boolean
public
secure
:
boolean
public
time
:
number
public
trailers
:
string
public
url
:
string
Methods
public
_read
(
size
:
number
)
Parameters
size:
number
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
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
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
pause
(
)
public
pipe
(
destination
:
T
, options
?:
{ end?: boolean; }
)
:
T
Parameters
destination:
T
options?:
{ end?: boolean; }
optional
Returns
T
public
push
(
chunk
:
any
, encoding
?:
string
)
:
boolean
Parameters
chunk:
any
encoding?:
string
optional
Returns
boolean
public
read
(
size
?:
number
)
:
any
Parameters
size?:
number
optional
Returns
any
public
removeAllListeners
(
event
?:
string
)
:
EventEmitter
Parameters
event?:
string
optional
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
removeListener
(
event
:
string
, listener
:
Function
)
:
EventEmitter
Parameters
event:
string
listener:
Function
Returns
EventEmitter
public
resume
(
)
public
setEncoding
(
encoding
?:
string
)
Parameters
encoding?:
string
optional
public
setMaxListeners
(
n
:
number
)
Parameters
n:
number
public
setMaxListeners
(
n
:
number
)
Parameters
n:
number
public
unpipe
(
destination
?:
T
)
Parameters
destination?:
T
optional
public
unshift
(
chunk
:
string
)
Parameters
chunk:
string
public
unshift
(
chunk
:
Buffer
)
Parameters
chunk:
Buffer
public
wrap
(
oldStream
:
ReadableStream
)
:
ReadableStream
Parameters
oldStream:
ReadableStream
Returns
ReadableStream
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
constructor
accepts
body
connection
contentLength
contentType
getLogger
header
headers
href
httpVersion
id
is
log
method
params
path
query
readable
secure
time
trailers
url
_read
addListener
emit
listeners
on
once
pause
pipe
push
read
removeAllListeners
removeListener
resume
setEncoding
setMaxListeners
unpipe
unshift
wrap
RequestExpiredError
RequestThrottledError
ResourceNotFoundError
Response
RestError
Server
WrongAcceptError
acceptParser
auditLogger
authorizationParser
bodyParser
conditionalRequest
createClient
createJsonClient
createServer
createStringClient
dateParser
fullResponse
gzipResponse
jsonp
queryParser
requestLogger
serveStatic
throttle
urlEncodedBodyParser