lighttp v0.1.0 (2018-03-21T17:11:43Z)
Dub
Repo
RouteImpl
lighttp
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] == NetworkAddress)
)
enum
__address
;
static if
(
E.length
)
static if
(
is(E[0] == NetworkAddress)
)
static if
(
E.length > 1
)
static if
(
is(E[1] == Request)
)
static if
(
E.length > 2 && is(E[2] == Response)
)
enum
__response
;
static if
(
E.length
)
static if
(
is(E[0] == NetworkAddress)
)
static if
(
E.length > 1
)
static if
(!(
is(E[1] == Request)
))
static if
(
is(E[1] == Response)
)
enum
__response
;
static if
(
E.length
)
static if
(!(
is(E[0] == NetworkAddress)
))
static if
(
is(E[0] == Request)
)
enum
__request
;
static if
(
E.length
)
static if
(!(
is(E[0] == NetworkAddress)
))
static if
(
is(E[0] == Request)
)
static if
(
E.length > 1 && is(E[1] == Response)
)
enum
__response
;
static if
(
E.length
)
static if
(!(
is(E[0] == NetworkAddress)
))
static if
(!(
is(E[0] == Request)
))
static if
(
is(E[0] == Response)
)
enum
__response
;
static if
(
!is(typeof(__address))
)
enum
__address
;
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
(!(
__address == -1 && __request == -1 && __response == -1
))
enum
_
;
alias
Args
=
E
[
0
..
_
]
;
alias
Match
=
E
[
_
..$]
;
this
(T path);
void
callImpl
(void delegate(E) del, AsyncTCPConnection conn, Request req, Response res, Match match);
void
call
(HandleResult result, AsyncTCPConnection conn, Request req, Response res, Match match);
void
handle
(HandleResult result, AsyncTCPConnection conn, Request req, Response 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
(HandleResult result, AsyncTCPConnection conn, Request req, Response res, Match match)
Undocumented in source.
callImpl
void
callImpl
(void delegate(E) del, AsyncTCPConnection conn, Request req, Response res, Match match)
Undocumented in source. Be warned that the author may not have intended to support it.
handle
void
handle
(HandleResult result, AsyncTCPConnection conn, Request req, Response res)
Undocumented in source. Be warned that the author may not have intended to support it.
Manifest constants
_
enum
_
;
Undocumented in source.
__address
enum
__address
;
Undocumented in source.
__address
enum
__address
;
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.
__response
enum
__response
;
Undocumented in source.
__response
enum
__response
;
Undocumented in source.
Inherited Members
From Route
handle
void
handle
(HandleResult result, AsyncTCPConnection conn, Request req, Response res)
Undocumented in source.
Meta
Source
See Implementation
lighttp
router
classes
Route
RouteImpl
RouteOf
Router
WebSocketRouteOf
functions
CustomMethod
Get
Post
registerRoutes
structs
HandleResult
RouteInfo