@novice1/frame - v0.3.1
Preparing search index...
FrameworkOptions
Interface FrameworkOptions
interface
FrameworkOptions
{
bodyParser
?:
{
json
?:
OptionsJson
;
urlencoded
?:
OptionsUrlencoded
}
;
cookieParser
?:
{
options
?:
CookieParseOptions
;
secret
?:
string
|
string
[]
}
;
cors
?:
boolean
|
CorsOptions
|
CorsOptionsDelegate
<
CorsRequest
>
;
validatorOnError
?:
ErrorRequestHandler
<
ParamsDictionary
,
any
,
any
,
ParsedQs
,
Record
<
string
,
any
>
,
any
,
>
;
}
Hierarchy
FrameworkOptions
FrameworkOptions
Index
Properties
body
Parser?
cookie
Parser?
cors?
validator
On
Error?
Properties
Optional
body
Parser
bodyParser
?:
{
json
?:
OptionsJson
;
urlencoded
?:
OptionsUrlencoded
}
Optional
cookie
Parser
cookieParser
?:
{
options
?:
CookieParseOptions
;
secret
?:
string
|
string
[]
}
Optional
cors
cors
?:
boolean
|
CorsOptions
|
CorsOptionsDelegate
<
CorsRequest
>
Optional
validator
On
Error
validatorOnError
?:
ErrorRequestHandler
<
ParamsDictionary
,
any
,
any
,
ParsedQs
,
Record
<
string
,
any
>
,
any
,
>
Error request handler for the default validator if no validitor was set in constructor
Settings
Member Visibility
Protected
Inherited
Theme
OS
Light
Dark
On This Page
Properties
body
Parser
cookie
Parser
cors
validator
On
Error
@novice1/frame - v0.3.1
Loading...
Error request handler for the default validator if no validitor was set in constructor