Search
Preparing search index...
The search index is not available
@nestjs/common
Options
All
Public
Public/Protected
All
Inherited
Externals
Only exported
Menu
Globals
ExpressAdapter
Class ExpressAdapter
Hierarchy
ExpressAdapter
ExpressAdapter
ExpressAdapter
Index
Constructors
constructor
Properties
router
Method
Factory
Methods
close
create
Middleware
Factory
disable
enable
enable
Cors
engine
get
Request
Method
get
Request
Url
init
Http
Server
is
Middleware
Applied
listen
register
Parser
Middleware
render
reply
set
set
Base
Views
Dir
set
Error
Handler
set
Header
set
Not
Found
Handler
set
View
Engine
status
use
Static
Assets
Constructors
constructor
new
Express
Adapter
(
instance
?:
any
)
:
ExpressAdapter
Parameters
Optional
instance:
any
Returns
ExpressAdapter
Properties
Private
router
Method
Factory
router
Method
Factory
:
any
= new RouterMethodFactory()
Methods
close
close
(
)
:
any
Returns
any
create
Middleware
Factory
create
Middleware
Factory
(
requestMethod
:
RequestMethod
)
:
function
Parameters
requestMethod:
RequestMethod
Returns
function
(
path
:
string
, callback
:
Function
)
:
any
Parameters
path:
string
callback:
Function
Returns
any
disable
disable
(
...
args
:
any
[]
)
:
any
Parameters
Rest
...
args:
any
[]
Returns
any
enable
enable
(
...
args
:
any
[]
)
:
any
Parameters
Rest
...
args:
any
[]
Returns
any
enable
Cors
enable
Cors
(
options
:
CorsOptions
)
:
void
Parameters
options:
CorsOptions
Returns
void
engine
engine
(
...
args
:
any
[]
)
:
any
Parameters
Rest
...
args:
any
[]
Returns
any
get
Request
Method
get
Request
Method
(
request
:
any
)
:
string
Parameters
request:
any
Returns
string
get
Request
Url
get
Request
Url
(
request
:
any
)
:
string
Parameters
request:
any
Returns
string
init
Http
Server
init
Http
Server
(
options
:
NestApplicationOptions
)
:
void
Parameters
options:
NestApplicationOptions
Returns
void
Private
is
Middleware
Applied
is
Middleware
Applied
(
name
:
string
)
:
boolean
Parameters
name:
string
Returns
boolean
listen
listen
(
port
:
string
|
number
, callback
?:
function
)
:
any
listen
(
port
:
string
|
number
, hostname
:
string
, callback
?:
function
)
:
any
Parameters
port:
string
|
number
Optional
callback:
function
(
)
:
void
Returns
void
Returns
any
Parameters
port:
string
|
number
hostname:
string
Optional
callback:
function
(
)
:
void
Returns
void
Returns
any
register
Parser
Middleware
register
Parser
Middleware
(
)
:
void
Returns
void
render
render
(
response
:
any
, view
:
string
, options
:
any
)
:
any
Parameters
response:
any
view:
string
options:
any
Returns
any
reply
reply
(
response
:
any
, body
:
any
, statusCode
?:
number
)
:
any
Parameters
response:
any
body:
any
Optional
statusCode:
number
Returns
any
set
set
(
...
args
:
any
[]
)
:
any
Parameters
Rest
...
args:
any
[]
Returns
any
set
Base
Views
Dir
set
Base
Views
Dir
(
path
:
string
|
string
[]
)
:
any
Parameters
path:
string
|
string
[]
Returns
any
set
Error
Handler
set
Error
Handler
(
handler
:
Function
)
:
any
Parameters
handler:
Function
Returns
any
set
Header
set
Header
(
response
:
any
, name
:
string
, value
:
string
)
:
any
Parameters
response:
any
name:
string
value:
string
Returns
any
set
Not
Found
Handler
set
Not
Found
Handler
(
handler
:
Function
)
:
any
Parameters
handler:
Function
Returns
any
set
View
Engine
set
View
Engine
(
engine
:
string
)
:
any
Parameters
engine:
string
Returns
any
status
status
(
response
:
any
, statusCode
:
number
)
:
any
Parameters
response:
any
statusCode:
number
Returns
any
use
Static
Assets
use
Static
Assets
(
path
:
string
, options
:
ServeStaticOptions
)
:
any
Parameters
path:
string
options:
ServeStaticOptions
Returns
any
Globals
Express
Adapter
constructor
router
Method
Factory
close
create
Middleware
Factory
disable
enable
enable
Cors
engine
get
Request
Method
get
Request
Url
init
Http
Server
is
Middleware
Applied
listen
register
Parser
Middleware
render
reply
set
set
Base
Views
Dir
set
Error
Handler
set
Header
set
Not
Found
Handler
set
View
Engine
status
use
Static
Assets
Generated using
TypeDoc