Search
Preparing search index...
The search index is not available
Cassava
Options
All
Public
Public/Protected
All
Inherited
Externals
Only exported
Menu
Globals
"routes/LoggingRoute"
LoggingRoute
Class LoggingRoute
Logs all requests and responses.
Hierarchy
LoggingRoute
Implements
Route
Index
Constructors
constructor
Properties
options
Methods
handle
headers
ToString
log
matches
post
Process
query
Map
ToString
request
ToString
response
ToString
Constructors
constructor
new
Logging
Route
(
options
?:
LoggingRouteOptions
)
:
LoggingRoute
Parameters
Default value
options:
LoggingRouteOptions
= {}
Returns
LoggingRoute
Properties
Readonly
options
options
:
LoggingRouteOptions
Methods
handle
handle
(
evt
:
RouterEvent
)
:
void
Parameters
evt:
RouterEvent
Returns
void
headers
ToString
headers
ToString
(
headers
:
{}
, headersFilter
:
true
|
string
[]
)
:
string
Parameters
headers:
{}
[
key:
string
]:
string
|
string
[]
headersFilter:
true
|
string
[]
Returns
string
log
log
(
msg
:
string
)
:
void
Parameters
msg:
string
Returns
void
matches
matches
(
evt
:
RouterEvent
)
:
boolean
Parameters
evt:
RouterEvent
Returns
boolean
post
Process
post
Process
(
evt
:
RouterEvent
, resp
:
RouterResponse
)
:
void
Parameters
evt:
RouterEvent
resp:
RouterResponse
Returns
void
query
Map
ToString
query
Map
ToString
(
queryStringParameters
:
{}
|
null
)
:
string
Parameters
queryStringParameters:
{}
|
null
Returns
string
request
ToString
request
ToString
(
evt
:
RouterEvent
)
:
string
Parameters
evt:
RouterEvent
Returns
string
response
ToString
response
ToString
(
resp
:
RouterResponse
)
:
string
Parameters
resp:
RouterResponse
Returns
string
Globals
"
Proxy
Event"
"
Proxy
Response"
"
Rest
Error"
"
Router"
"
Router
Event"
"
Router
Response"
"http
Status"
"index"
"routes/
Buildable
Route"
"routes/
Default
Route"
"routes/
File
System
Route"
"routes/
Logging
Route"
"routes/
Proxy
Route"
"routes/
Route"
"routes/index"
"serializers"
"testing/create
Test
Lambda
Context"
"testing/create
Test
Proxy
Event"
"testing/index"
Logging
Route
constructor
options
handle
headers
ToString
log
matches
post
Process
query
Map
ToString
request
ToString
response
ToString
Logging
Route
Options
Generated using
TypeDoc
Logs all requests and responses.