Search
Preparing search index...
The search index is not available
@nestjs/core
Options
All
Public
Public/Protected
All
Inherited
Externals
Only exported
Menu
Globals
NoopHttpAdapter
Class NoopHttpAdapter
Hierarchy
AbstractHttpAdapter
NoopHttpAdapter
Implements
HttpServer
<
any
,
any
>
Index
Constructors
constructor
Properties
http
Server
instance
Methods
close
create
Middleware
Factory
delete
enable
Cors
get
get
Http
Server
get
Instance
get
Request
Hostname
get
Request
Method
get
Request
Url
get
Type
head
init
init
Http
Server
listen
options
patch
post
put
redirect
register
Parser
Middleware
render
reply
set
Error
Handler
set
Header
set
Http
Server
set
Not
Found
Handler
set
View
Engine
status
use
use
Static
Assets
Constructors
constructor
new
Noop
Http
Adapter
(
instance
:
any
)
:
NoopHttpAdapter
Parameters
instance:
any
Returns
NoopHttpAdapter
Properties
Protected
http
Server
http
Server
:
any
Protected
Readonly
instance
instance
:
any
Methods
close
close
(
)
:
any
Returns
any
create
Middleware
Factory
create
Middleware
Factory
(
requestMethod
:
RequestMethod
)
:
any
Parameters
requestMethod:
RequestMethod
Returns
any
delete
delete
(
handler
:
RequestHandler
)
:
any
delete
(
path
:
any
, handler
:
RequestHandler
)
:
any
Parameters
handler:
RequestHandler
Returns
any
Parameters
path:
any
handler:
RequestHandler
Returns
any
enable
Cors
enable
Cors
(
options
:
any
)
:
any
Parameters
options:
any
Returns
any
get
get
(
handler
:
RequestHandler
)
:
any
get
(
path
:
any
, handler
:
RequestHandler
)
:
any
Parameters
handler:
RequestHandler
Returns
any
Parameters
path:
any
handler:
RequestHandler
Returns
any
get
Http
Server
get
Http
Server
(
)
:
any
Returns
any
get
Instance
get
Instance<T>
(
)
:
T
Type parameters
T =
any
Returns
T
get
Request
Hostname
get
Request
Hostname
(
request
:
any
)
:
any
Parameters
request:
any
Returns
any
get
Request
Method
get
Request
Method
(
request
:
any
)
:
any
Parameters
request:
any
Returns
any
get
Request
Url
get
Request
Url
(
request
:
any
)
:
any
Parameters
request:
any
Returns
any
get
Type
get
Type
(
)
:
string
Returns
string
head
head
(
handler
:
RequestHandler
)
:
any
head
(
path
:
any
, handler
:
RequestHandler
)
:
any
Parameters
handler:
RequestHandler
Returns
any
Parameters
path:
any
handler:
RequestHandler
Returns
any
init
init
(
)
:
Promise
<
void
>
Returns
Promise
<
void
>
init
Http
Server
init
Http
Server
(
options
:
any
)
:
any
Parameters
options:
any
Returns
any
listen
listen
(
port
:
string
|
number
, callback
?:
(
)
=>
void
)
:
any
listen
(
port
:
string
|
number
, hostname
:
string
, callback
?:
(
)
=>
void
)
:
any
Parameters
port:
string
|
number
Optional
callback:
(
)
=>
void
(
)
:
void
Returns
void
Returns
any
Parameters
port:
string
|
number
hostname:
string
Optional
callback:
(
)
=>
void
(
)
:
void
Returns
void
Returns
any
options
options
(
handler
:
RequestHandler
)
:
any
options
(
path
:
any
, handler
:
RequestHandler
)
:
any
Parameters
handler:
RequestHandler
Returns
any
Parameters
path:
any
handler:
RequestHandler
Returns
any
patch
patch
(
handler
:
RequestHandler
)
:
any
patch
(
path
:
any
, handler
:
RequestHandler
)
:
any
Parameters
handler:
RequestHandler
Returns
any
Parameters
path:
any
handler:
RequestHandler
Returns
any
post
post
(
handler
:
RequestHandler
)
:
any
post
(
path
:
any
, handler
:
RequestHandler
)
:
any
Parameters
handler:
RequestHandler
Returns
any
Parameters
path:
any
handler:
RequestHandler
Returns
any
put
put
(
handler
:
RequestHandler
)
:
any
put
(
path
:
any
, handler
:
RequestHandler
)
:
any
Parameters
handler:
RequestHandler
Returns
any
Parameters
path:
any
handler:
RequestHandler
Returns
any
redirect
redirect
(
response
:
any
, statusCode
:
number
, url
:
string
)
:
void
Parameters
response:
any
statusCode:
number
url:
string
Returns
void
register
Parser
Middleware
register
Parser
Middleware
(
)
:
any
Returns
any
render
render
(
response
:
any
, view
:
string
, options
:
any
)
:
any
Parameters
response:
any
view:
string
options:
any
Returns
any
reply
reply
(
response
:
any
, body
:
any
)
:
any
Parameters
response:
any
body:
any
Returns
any
set
Error
Handler
set
Error
Handler
(
handler
:
Function
, prefix
?:
string
)
:
any
Parameters
handler:
Function
Default value
prefix:
string
= "/"
Returns
any
set
Header
set
Header
(
response
:
any
, name
:
string
, value
:
string
)
:
any
Parameters
response:
any
name:
string
value:
string
Returns
any
set
Http
Server
set
Http
Server
(
httpServer
:
any
)
:
void
Parameters
httpServer:
any
Returns
void
set
Not
Found
Handler
set
Not
Found
Handler
(
handler
:
Function
, prefix
?:
string
)
:
any
Parameters
handler:
Function
Default value
prefix:
string
= "/"
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
use
(
...
args
:
any
[]
)
:
any
Parameters
Rest
...
args:
any
[]
Returns
any
use
Static
Assets
use
Static
Assets
(
...
args
:
any
[]
)
:
any
Parameters
Rest
...
args:
any
[]
Returns
any
Globals
Noop
Http
Adapter
constructor
http
Server
instance
close
create
Middleware
Factory
delete
enable
Cors
get
get
Http
Server
get
Instance
get
Request
Hostname
get
Request
Method
get
Request
Url
get
Type
head
init
init
Http
Server
listen
options
patch
post
put
redirect
register
Parser
Middleware
render
reply
set
Error
Handler
set
Header
set
Http
Server
set
Not
Found
Handler
set
View
Engine
status
use
use
Static
Assets
Generated using
TypeDoc