sutro
Options
All
Public
Public/Protected
All
Inherited
Externals
Only exported
Menu
Bad
Request
Error
Not
Found
Error
Unauthorized
Error
Validation
Error
Sutro
Request
Sutro
Stream
content
Type
destroyed
readable
readable
Encoding
readable
Ended
readable
Flowing
readable
High
Water
Mark
readable
Length
readable
Object
Mode
[
Symbol.async
Iterator]
_destroy
_read
add
Listener
destroy
emit
event
Names
get
Max
Listeners
is
Paused
listener
Count
listeners
off
on
once
pause
pipe
prepend
Listener
prepend
Once
Listener
push
raw
Listeners
read
remove
All
Listeners
remove
Listener
resume
set
Encoding
set
Max
Listeners
unpipe
unshift
wrap
Endpoint
Cache
Endpoint
Execute
Endpoint
Format
EndpointHTTP
Endpoint
IsAuthorized
default
codes
rewrite
Large
Requests
Hierarchy
Readable
SutroStream
Index
Properties
content
Type
destroyed
readable
readable
Encoding
readable
Ended
readable
Flowing
readable
High
Water
Mark
readable
Length
readable
Object
Mode
Methods
[
Symbol.async
Iterator]
_destroy
_read
add
Listener
destroy
emit
event
Names
get
Max
Listeners
is
Paused
listener
Count
listeners
off
on
once
pause
pipe
prepend
Listener
prepend
Once
Listener
push
raw
Listeners
read
remove
All
Listeners
remove
Listener
resume
set
Encoding
set
Max
Listeners
unpipe
unshift
wrap
Properties
Optional
content
Type
content
Type
:
string
destroyed
destroyed
:
boolean
readable
readable
:
boolean
Readonly
readable
Encoding
readable
Encoding
:
BufferEncoding
Readonly
readable
Ended
readable
Ended
:
boolean
Readonly
readable
Flowing
readable
Flowing
:
boolean
Readonly
readable
High
Water
Mark
readable
High
Water
Mark
:
number
Readonly
readable
Length
readable
Length
:
number
Readonly
readable
Object
Mode
readable
Object
Mode
:
boolean
Methods
[
Symbol.async
Iterator]
[
Symbol.async
Iterator]
(
)
:
AsyncIterableIterator
<
any
>
Returns
AsyncIterableIterator
<
any
>
_destroy
_destroy
(
error
:
Error
, callback
:
(
error
?:
Error
)
=>
void
)
:
void
Parameters
error:
Error
callback:
(
error
?:
Error
)
=>
void
(
error
?:
Error
)
:
void
Parameters
Optional
error:
Error
Returns
void
Returns
void
_read
_read
(
size
:
number
)
:
void
Parameters
size:
number
Returns
void
add
Listener
add
Listener
(
event
:
"close"
, listener
:
(
)
=>
void
)
:
SutroStream
add
Listener
(
event
:
"data"
, listener
:
(
chunk
:
any
)
=>
void
)
:
SutroStream
add
Listener
(
event
:
"end"
, listener
:
(
)
=>
void
)
:
SutroStream
add
Listener
(
event
:
"error"
, listener
:
(
err
:
Error
)
=>
void
)
:
SutroStream
add
Listener
(
event
:
"pause"
, listener
:
(
)
=>
void
)
:
SutroStream
add
Listener
(
event
:
"readable"
, listener
:
(
)
=>
void
)
:
SutroStream
add
Listener
(
event
:
"resume"
, listener
:
(
)
=>
void
)
:
SutroStream
add
Listener
(
event
:
string
|
symbol
, listener
:
(
...
args
:
any
[]
)
=>
void
)
:
SutroStream
Event emitter The defined events on documents including:
close
data
end
error
pause
readable
resume
Parameters
event:
"close"
listener:
(
)
=>
void
(
)
:
void
Returns
void
Returns
SutroStream
Parameters
event:
"data"
listener:
(
chunk
:
any
)
=>
void
(
chunk
:
any
)
:
void
Parameters
chunk:
any
Returns
void
Returns
SutroStream
Parameters
event:
"end"
listener:
(
)
=>
void
(
)
:
void
Returns
void
Returns
SutroStream
Parameters
event:
"error"
listener:
(
err
:
Error
)
=>
void
(
err
:
Error
)
:
void
Parameters
err:
Error
Returns
void
Returns
SutroStream
Parameters
event:
"pause"
listener:
(
)
=>
void
(
)
:
void
Returns
void
Returns
SutroStream
Parameters
event:
"readable"
listener:
(
)
=>
void
(
)
:
void
Returns
void
Returns
SutroStream
Parameters
event:
"resume"
listener:
(
)
=>
void
(
)
:
void
Returns
void
Returns
SutroStream
Parameters
event:
string
|
symbol
listener:
(
...
args
:
any
[]
)
=>
void
(
...
args
:
any
[]
)
:
void
Parameters
Rest
...
args:
any
[]
Returns
void
Returns
SutroStream
destroy
destroy
(
error
?:
Error
)
:
void
Parameters
Optional
error:
Error
Returns
void
emit
emit
(
event
:
"close"
)
:
boolean
emit
(
event
:
"data"
, chunk
:
any
)
:
boolean
emit
(
event
:
"end"
)
:
boolean
emit
(
event
:
"error"
, err
:
Error
)
:
boolean
emit
(
event
:
"pause"
)
:
boolean
emit
(
event
:
"readable"
)
:
boolean
emit
(
event
:
"resume"
)
:
boolean
emit
(
event
:
string
|
symbol
,
...
args
:
any
[]
)
:
boolean
Parameters
event:
"close"
Returns
boolean
Parameters
event:
"data"
chunk:
any
Returns
boolean
Parameters
event:
"end"
Returns
boolean
Parameters
event:
"error"
err:
Error
Returns
boolean
Parameters
event:
"pause"
Returns
boolean
Parameters
event:
"readable"
Returns
boolean
Parameters
event:
"resume"
Returns
boolean
Parameters
event:
string
|
symbol
Rest
...
args:
any
[]
Returns
boolean
event
Names
event
Names
(
)
:
(
string
|
symbol
)
[]
Returns
(
string
|
symbol
)
[]
get
Max
Listeners
get
Max
Listeners
(
)
:
number
Returns
number
is
Paused
is
Paused
(
)
:
boolean
Returns
boolean
listener
Count
listener
Count
(
event
:
string
|
symbol
)
:
number
Parameters
event:
string
|
symbol
Returns
number
listeners
listeners
(
event
:
string
|
symbol
)
:
Function
[]
Parameters
event:
string
|
symbol
Returns
Function
[]
off
off
(
event
:
string
|
symbol
, listener
:
(
...
args
:
any
[]
)
=>
void
)
:
SutroStream
Parameters
event:
string
|
symbol
listener:
(
...
args
:
any
[]
)
=>
void
(
...
args
:
any
[]
)
:
void
Parameters
Rest
...
args:
any
[]
Returns
void
Returns
SutroStream
on
on
(
event
:
"close"
, listener
:
(
)
=>
void
)
:
SutroStream
on
(
event
:
"data"
, listener
:
(
chunk
:
any
)
=>
void
)
:
SutroStream
on
(
event
:
"end"
, listener
:
(
)
=>
void
)
:
SutroStream
on
(
event
:
"error"
, listener
:
(
err
:
Error
)
=>
void
)
:
SutroStream
on
(
event
:
"pause"
, listener
:
(
)
=>
void
)
:
SutroStream
on
(
event
:
"readable"
, listener
:
(
)
=>
void
)
:
SutroStream
on
(
event
:
"resume"
, listener
:
(
)
=>
void
)
:
SutroStream
on
(
event
:
string
|
symbol
, listener
:
(
...
args
:
any
[]
)
=>
void
)
:
SutroStream
Parameters
event:
"close"
listener:
(
)
=>
void
(
)
:
void
Returns
void
Returns
SutroStream
Parameters
event:
"data"
listener:
(
chunk
:
any
)
=>
void
(
chunk
:
any
)
:
void
Parameters
chunk:
any
Returns
void
Returns
SutroStream
Parameters
event:
"end"
listener:
(
)
=>
void
(
)
:
void
Returns
void
Returns
SutroStream
Parameters
event:
"error"
listener:
(
err
:
Error
)
=>
void
(
err
:
Error
)
:
void
Parameters
err:
Error
Returns
void
Returns
SutroStream
Parameters
event:
"pause"
listener:
(
)
=>
void
(
)
:
void
Returns
void
Returns
SutroStream
Parameters
event:
"readable"
listener:
(
)
=>
void
(
)
:
void
Returns
void
Returns
SutroStream
Parameters
event:
"resume"
listener:
(
)
=>
void
(
)
:
void
Returns
void
Returns
SutroStream
Parameters
event:
string
|
symbol
listener:
(
...
args
:
any
[]
)
=>
void
(
...
args
:
any
[]
)
:
void
Parameters
Rest
...
args:
any
[]
Returns
void
Returns
SutroStream
once
once
(
event
:
"close"
, listener
:
(
)
=>
void
)
:
SutroStream
once
(
event
:
"data"
, listener
:
(
chunk
:
any
)
=>
void
)
:
SutroStream
once
(
event
:
"end"
, listener
:
(
)
=>
void
)
:
SutroStream
once
(
event
:
"error"
, listener
:
(
err
:
Error
)
=>
void
)
:
SutroStream
once
(
event
:
"pause"
, listener
:
(
)
=>
void
)
:
SutroStream
once
(
event
:
"readable"
, listener
:
(
)
=>
void
)
:
SutroStream
once
(
event
:
"resume"
, listener
:
(
)
=>
void
)
:
SutroStream
once
(
event
:
string
|
symbol
, listener
:
(
...
args
:
any
[]
)
=>
void
)
:
SutroStream
Parameters
event:
"close"
listener:
(
)
=>
void
(
)
:
void
Returns
void
Returns
SutroStream
Parameters
event:
"data"
listener:
(
chunk
:
any
)
=>
void
(
chunk
:
any
)
:
void
Parameters
chunk:
any
Returns
void
Returns
SutroStream
Parameters
event:
"end"
listener:
(
)
=>
void
(
)
:
void
Returns
void
Returns
SutroStream
Parameters
event:
"error"
listener:
(
err
:
Error
)
=>
void
(
err
:
Error
)
:
void
Parameters
err:
Error
Returns
void
Returns
SutroStream
Parameters
event:
"pause"
listener:
(
)
=>
void
(
)
:
void
Returns
void
Returns
SutroStream
Parameters
event:
"readable"
listener:
(
)
=>
void
(
)
:
void
Returns
void
Returns
SutroStream
Parameters
event:
"resume"
listener:
(
)
=>
void
(
)
:
void
Returns
void
Returns
SutroStream
Parameters
event:
string
|
symbol
listener:
(
...
args
:
any
[]
)
=>
void
(
...
args
:
any
[]
)
:
void
Parameters
Rest
...
args:
any
[]
Returns
void
Returns
SutroStream
pause
pause
(
)
:
SutroStream
Returns
SutroStream
pipe
pipe<T>
(
destination
:
T
, options
?:
{
end
?:
boolean
}
)
:
T
Type parameters
T
:
WritableStream
<
T
>
Parameters
destination:
T
Optional
options:
{
end
?:
boolean
}
Optional
end
?:
boolean
Returns
T
prepend
Listener
prepend
Listener
(
event
:
"close"
, listener
:
(
)
=>
void
)
:
SutroStream
prepend
Listener
(
event
:
"data"
, listener
:
(
chunk
:
any
)
=>
void
)
:
SutroStream
prepend
Listener
(
event
:
"end"
, listener
:
(
)
=>
void
)
:
SutroStream
prepend
Listener
(
event
:
"error"
, listener
:
(
err
:
Error
)
=>
void
)
:
SutroStream
prepend
Listener
(
event
:
"pause"
, listener
:
(
)
=>
void
)
:
SutroStream
prepend
Listener
(
event
:
"readable"
, listener
:
(
)
=>
void
)
:
SutroStream
prepend
Listener
(
event
:
"resume"
, listener
:
(
)
=>
void
)
:
SutroStream
prepend
Listener
(
event
:
string
|
symbol
, listener
:
(
...
args
:
any
[]
)
=>
void
)
:
SutroStream
Parameters
event:
"close"
listener:
(
)
=>
void
(
)
:
void
Returns
void
Returns
SutroStream
Parameters
event:
"data"
listener:
(
chunk
:
any
)
=>
void
(
chunk
:
any
)
:
void
Parameters
chunk:
any
Returns
void
Returns
SutroStream
Parameters
event:
"end"
listener:
(
)
=>
void
(
)
:
void
Returns
void
Returns
SutroStream
Parameters
event:
"error"
listener:
(
err
:
Error
)
=>
void
(
err
:
Error
)
:
void
Parameters
err:
Error
Returns
void
Returns
SutroStream
Parameters
event:
"pause"
listener:
(
)
=>
void
(
)
:
void
Returns
void
Returns
SutroStream
Parameters
event:
"readable"
listener:
(
)
=>
void
(
)
:
void
Returns
void
Returns
SutroStream
Parameters
event:
"resume"
listener:
(
)
=>
void
(
)
:
void
Returns
void
Returns
SutroStream
Parameters
event:
string
|
symbol
listener:
(
...
args
:
any
[]
)
=>
void
(
...
args
:
any
[]
)
:
void
Parameters
Rest
...
args:
any
[]
Returns
void
Returns
SutroStream
prepend
Once
Listener
prepend
Once
Listener
(
event
:
"close"
, listener
:
(
)
=>
void
)
:
SutroStream
prepend
Once
Listener
(
event
:
"data"
, listener
:
(
chunk
:
any
)
=>
void
)
:
SutroStream
prepend
Once
Listener
(
event
:
"end"
, listener
:
(
)
=>
void
)
:
SutroStream
prepend
Once
Listener
(
event
:
"error"
, listener
:
(
err
:
Error
)
=>
void
)
:
SutroStream
prepend
Once
Listener
(
event
:
"pause"
, listener
:
(
)
=>
void
)
:
SutroStream
prepend
Once
Listener
(
event
:
"readable"
, listener
:
(
)
=>
void
)
:
SutroStream
prepend
Once
Listener
(
event
:
"resume"
, listener
:
(
)
=>
void
)
:
SutroStream
prepend
Once
Listener
(
event
:
string
|
symbol
, listener
:
(
...
args
:
any
[]
)
=>
void
)
:
SutroStream
Parameters
event:
"close"
listener:
(
)
=>
void
(
)
:
void
Returns
void
Returns
SutroStream
Parameters
event:
"data"
listener:
(
chunk
:
any
)
=>
void
(
chunk
:
any
)
:
void
Parameters
chunk:
any
Returns
void
Returns
SutroStream
Parameters
event:
"end"
listener:
(
)
=>
void
(
)
:
void
Returns
void
Returns
SutroStream
Parameters
event:
"error"
listener:
(
err
:
Error
)
=>
void
(
err
:
Error
)
:
void
Parameters
err:
Error
Returns
void
Returns
SutroStream
Parameters
event:
"pause"
listener:
(
)
=>
void
(
)
:
void
Returns
void
Returns
SutroStream
Parameters
event:
"readable"
listener:
(
)
=>
void
(
)
:
void
Returns
void
Returns
SutroStream
Parameters
event:
"resume"
listener:
(
)
=>
void
(
)
:
void
Returns
void
Returns
SutroStream
Parameters
event:
string
|
symbol
listener:
(
...
args
:
any
[]
)
=>
void
(
...
args
:
any
[]
)
:
void
Parameters
Rest
...
args:
any
[]
Returns
void
Returns
SutroStream
push
push
(
chunk
:
any
, encoding
?:
BufferEncoding
)
:
boolean
Parameters
chunk:
any
Optional
encoding:
BufferEncoding
Returns
boolean
raw
Listeners
raw
Listeners
(
event
:
string
|
symbol
)
:
Function
[]
Parameters
event:
string
|
symbol
Returns
Function
[]
read
read
(
size
?:
number
)
:
any
Parameters
Optional
size:
number
Returns
any
remove
All
Listeners
remove
All
Listeners
(
event
?:
string
|
symbol
)
:
SutroStream
Parameters
Optional
event:
string
|
symbol
Returns
SutroStream
remove
Listener
remove
Listener
(
event
:
"close"
, listener
:
(
)
=>
void
)
:
SutroStream
remove
Listener
(
event
:
"data"
, listener
:
(
chunk
:
any
)
=>
void
)
:
SutroStream
remove
Listener
(
event
:
"end"
, listener
:
(
)
=>
void
)
:
SutroStream
remove
Listener
(
event
:
"error"
, listener
:
(
err
:
Error
)
=>
void
)
:
SutroStream
remove
Listener
(
event
:
"pause"
, listener
:
(
)
=>
void
)
:
SutroStream
remove
Listener
(
event
:
"readable"
, listener
:
(
)
=>
void
)
:
SutroStream
remove
Listener
(
event
:
"resume"
, listener
:
(
)
=>
void
)
:
SutroStream
remove
Listener
(
event
:
string
|
symbol
, listener
:
(
...
args
:
any
[]
)
=>
void
)
:
SutroStream
Parameters
event:
"close"
listener:
(
)
=>
void
(
)
:
void
Returns
void
Returns
SutroStream
Parameters
event:
"data"
listener:
(
chunk
:
any
)
=>
void
(
chunk
:
any
)
:
void
Parameters
chunk:
any
Returns
void
Returns
SutroStream
Parameters
event:
"end"
listener:
(
)
=>
void
(
)
:
void
Returns
void
Returns
SutroStream
Parameters
event:
"error"
listener:
(
err
:
Error
)
=>
void
(
err
:
Error
)
:
void
Parameters
err:
Error
Returns
void
Returns
SutroStream
Parameters
event:
"pause"
listener:
(
)
=>
void
(
)
:
void
Returns
void
Returns
SutroStream
Parameters
event:
"readable"
listener:
(
)
=>
void
(
)
:
void
Returns
void
Returns
SutroStream
Parameters
event:
"resume"
listener:
(
)
=>
void
(
)
:
void
Returns
void
Returns
SutroStream
Parameters
event:
string
|
symbol
listener:
(
...
args
:
any
[]
)
=>
void
(
...
args
:
any
[]
)
:
void
Parameters
Rest
...
args:
any
[]
Returns
void
Returns
SutroStream
resume
resume
(
)
:
SutroStream
Returns
SutroStream
set
Encoding
set
Encoding
(
encoding
:
BufferEncoding
)
:
SutroStream
Parameters
encoding:
BufferEncoding
Returns
SutroStream
set
Max
Listeners
set
Max
Listeners
(
n
:
number
)
:
SutroStream
Parameters
n:
number
Returns
SutroStream
unpipe
unpipe
(
destination
?:
WritableStream
)
:
SutroStream
Parameters
Optional
destination:
WritableStream
Returns
SutroStream
unshift
unshift
(
chunk
:
any
, encoding
?:
BufferEncoding
)
:
void
Parameters
chunk:
any
Optional
encoding:
BufferEncoding
Returns
void
wrap
wrap
(
oldStream
:
ReadableStream
)
:
SutroStream
Parameters
oldStream:
ReadableStream
Returns
SutroStream
Generated using
TypeDoc
Event emitter The defined events on documents including: