GitHub
Npm
Preparing search index...
The search index is not available
Nb2
Nb2
Nb2
Class Nb2
Index
Constructors
constructor
Properties
cname
log
opt
Methods
close
run
use
Constructors
constructor
new
Nb2
(
opt
?
)
:
Nb2
Parameters
Optional
opt
:
ServerOpt
Returns
Nb2
Properties
cname
cname
:
string
log
log
:
Logger
opt
opt
:
Required
<
ServerOpt
>
Methods
close
close
(
callback
?
)
:
void
优雅的关闭服务
Parameters
Optional
callback
:
(
(
err
?:
Error
)
=>
void
)
(
err
?
)
:
void
Parameters
Optional
err
:
Error
Returns
void
Returns
void
run
run
(
)
:
void
启动服务
Returns
void
use
use
(
m
)
:
void
安装中间件
Parameters
m
:
Middleware
中间件
Returns
void
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Properties
cname
log
opt
Methods
close
run
use
GitHub
Npm
Nb2
Loading...
优雅的关闭服务