Preparing search index...
The search index is not available
Deepkit
Deepkit
http
HttpRouter
Class HttpRouter
Hierarchy
HttpRouter
Index
Constructors
constructor
Properties
build
Id
fn?
resolve
Fn?
Methods
add
Route
add
Route
For
Controller
build
build
Url
Resolver
get
Route
Code
get
Route
Url
Resolve
Code
get
Routes
resolve
resolve
Request
resolve
Url
for
Controllers
Constructors
constructor
new
Http
Router
(
controllers
:
HttpControllers
, logger
:
LoggerInterface
, tagRegistry
:
TagRegistry
, middlewareRegistry
?:
MiddlewareRegistry
, registry
?:
HttpRouterRegistry
)
:
HttpRouter
Parameters
controllers:
HttpControllers
logger:
LoggerInterface
tagRegistry:
TagRegistry
middlewareRegistry:
MiddlewareRegistry
= ...
registry:
HttpRouterRegistry
= ...
Returns
HttpRouter
Properties
Protected
build
Id
build
Id
:
number
= 0
Protected
Optional
fn
fn
?:
(
(
request
:
HttpRequest
)
=>
undefined
|
ResolvedController
)
Type declaration
(
request
:
HttpRequest
)
:
undefined
|
ResolvedController
Parameters
request:
HttpRequest
Returns
undefined
|
ResolvedController
Protected
Optional
resolve
Fn
resolve
Fn
?:
(
(
name
:
string
, parameters
:
{
[name:
string
]
:
any
;
}
)
=>
string
)
Type declaration
(
name
:
string
, parameters
:
{
[name:
string
]
:
any
;
}
)
:
string
Parameters
name:
string
parameters:
{
[name:
string
]
:
any
;
}
[
name:
string
]:
any
Returns
string
Methods
add
Route
add
Route
(
routeConfig
:
RouteConfig
)
:
void
Parameters
routeConfig:
RouteConfig
Returns
void
add
Route
For
Controller
add
Route
For
Controller
(
controller
:
ClassType
<
any
>
, module
:
InjectorModule
<
any
,
InjectorModule
<
any
,
any
>
>
)
:
void
Parameters
controller:
ClassType
<
any
>
module:
InjectorModule
<
any
,
InjectorModule
<
any
,
any
>
>
Returns
void
Protected
build
build
(
)
:
(
(
request
:
HttpRequest
)
=>
undefined
|
ResolvedController
)
Returns
(
(
request
:
HttpRequest
)
=>
undefined
|
ResolvedController
)
(
request
:
HttpRequest
)
:
undefined
|
ResolvedController
Parameters
request:
HttpRequest
Returns
undefined
|
ResolvedController
Protected
build
Url
Resolver
build
Url
Resolver
(
)
:
any
Returns
any
Protected
get
Route
Code
get
Route
Code
(
compiler
:
CompilerContext
, routeConfig
:
RouteConfig
)
:
string
Parameters
compiler:
CompilerContext
routeConfig:
RouteConfig
Returns
string
Protected
get
Route
Url
Resolve
Code
get
Route
Url
Resolve
Code
(
compiler
:
CompilerContext
, routeConfig
:
RouteConfig
)
:
string
Parameters
compiler:
CompilerContext
routeConfig:
RouteConfig
Returns
string
get
Routes
get
Routes
(
)
:
RouteConfig
[]
Returns
RouteConfig
[]
resolve
resolve
(
method
:
string
, url
:
string
)
:
undefined
|
ResolvedController
Parameters
method:
string
url:
string
Returns
undefined
|
ResolvedController
resolve
Request
resolve
Request
(
request
:
HttpRequest
)
:
undefined
|
ResolvedController
Parameters
request:
HttpRequest
Returns
undefined
|
ResolvedController
resolve
Url
resolve
Url
(
routeName
:
string
, parameters
?:
{
[name:
string
]
:
any
;
}
)
:
string
Parameters
routeName:
string
parameters:
{
[name:
string
]
:
any
;
}
= {}
[
name:
string
]:
any
Returns
string
Static
for
Controllers
for
Controllers
(
controllers
:
(
ClassType
<
any
>
|
{
controller
:
ClassType
<
any
>
;
module
:
InjectorModule
<
any
,
InjectorModule
<
any
,
any
>
>
;
}
)
[]
, tagRegistry
?:
TagRegistry
, middlewareRegistry
?:
MiddlewareRegistry
, module
?:
InjectorModule
<
any
,
InjectorModule
<
any
,
any
>
>
)
:
HttpRouter
Parameters
controllers:
(
ClassType
<
any
>
|
{
controller
:
ClassType
<
any
>
;
module
:
InjectorModule
<
any
,
InjectorModule
<
any
,
any
>
>
;
}
)
[]
tagRegistry:
TagRegistry
= ...
middlewareRegistry:
MiddlewareRegistry
= ...
module:
InjectorModule
<
any
,
InjectorModule
<
any
,
any
>
>
= ...
Returns
HttpRouter
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
Modules
Deepkit
angular-
universal
api-
console-
api
api-
console-
module
app
broker
bson
core
core-
rxjs
create-
app
crypto
event
framework
framework-
debug-
api
http
injector
logger
mongo
mysql
orm
orm-
browser-
api
orm-
integration
postgres
rpc
rpc-
tcp
skeleton
sql
sqlite
stopwatch
template
type
type-
compiler
workflow
Http
Router
constructor
build
Id
fn?
resolve
Fn?
add
Route
add
Route
For
Controller
build
build
Url
Resolver
get
Route
Code
get
Route
Url
Resolve
Code
get
Routes
resolve
resolve
Request
resolve
Url
for
Controllers
Generated using
TypeDoc