lighttp v0.5.2 (2019-09-14T09:23:16Z)
Dub
Repo
RouteImpl
lighttp
server
router
Undocumented in source.
class
RouteImpl :
Route
(
T
E
...
)
if
(
is
(
T
==
string
) ||
isRegexFor
!(
T
,
string
)
) {
static if
(
E.length
)
static if
(
is(E[0] == ServerRequest)
)
enum
__request
;
static if
(
E.length
)
static if
(
is(E[0] == ServerRequest)
)
static if
(
E.length > 1 && is(E[1] == ServerResponse)
)
enum
__response
;
static if
(
E.length
)
static if
(!(
is(E[0] == ServerRequest)
))
static if
(
is(E[0] == ServerResponse)
)
enum
__response
;
static if
(
E.length
)
static if
(!(
is(E[0] == ServerRequest)
))
static if
(
is(E[0] == ServerResponse)
)
static if
(
E.length > 1 && is(E[1] == ServerRequest)
)
enum
__request
;
static if
(
!is(typeof(__request))
)
enum
__request
;
static if
(
!is(typeof(__response))
)
enum
__response
;
alias
Args
=
E
[
0
..
0
]
;
alias
Match
=
E
[
0
..$]
;
static if
(!(
__request == -1 && __response == -1
))
enum
_
;
alias
Args
=
E
[
0
..
_
]
;
alias
Match
=
E
[
_
..$]
;
this
(T path);
void
callImpl
(void delegate(E) del, ServerOptions options, AsyncTCPConnection client, ServerRequest req, ServerResponse res, Match match);
void
call
(ServerOptions options, HandleResult result, AsyncTCPConnection client, ServerRequest req, ServerResponse res, Match match);
void
handle
(ServerOptions options, HandleResult result, AsyncTCPConnection client, ServerRequest req, ServerResponse res);
}
Constructors
this
this
(T path)
Undocumented in source.
Members
Aliases
Args
alias
Args
=
E
[
0
..
0
]
Undocumented in source.
Args
alias
Args
=
E
[
0
..
_
]
Undocumented in source.
Match
alias
Match
=
E
[
0
..$]
Undocumented in source.
Match
alias
Match
=
E
[
_
..$]
Undocumented in source.
Functions
call
void
call
(ServerOptions options, HandleResult result, AsyncTCPConnection client, ServerRequest req, ServerResponse res, Match match)
Undocumented in source.
callImpl
void
callImpl
(void delegate(E) del, ServerOptions options, AsyncTCPConnection client, ServerRequest req, ServerResponse res, Match match)
Undocumented in source. Be warned that the author may not have intended to support it.
handle
void
handle
(ServerOptions options, HandleResult result, AsyncTCPConnection client, ServerRequest req, ServerResponse res)
Undocumented in source. Be warned that the author may not have intended to support it.
Manifest constants
_
enum
_
;
Undocumented in source.
__request
enum
__request
;
Undocumented in source.
__request
enum
__request
;
Undocumented in source.
__request
enum
__request
;
Undocumented in source.
__response
enum
__response
;
Undocumented in source.
__response
enum
__response
;
Undocumented in source.
__response
enum
__response
;
Undocumented in source.
Inherited Members
From Route
handle
void
handle
(ServerOptions options, HandleResult result, AsyncTCPConnection client, ServerRequest req, ServerResponse res)
Undocumented in source.
Meta
Source
See Implementation
lighttp
server
router
classes
MultipartRouteOf
Route
RouteImpl
RouteOf
Router
WebSocketRouteOf
functions
CustomMethod
Delete
Get
Post
Put
registerRoutes
routeInfo
structs
HandleResult
RouteInfo