FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
expresscpp/src/nextrouter.cpp at master · Dmdv/expresscpp · GitHub
Dmdv
/
expresscpp
Public
forked from
expresscpp/expresscpp
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
expresscpp
/
src
/
nextrouter.cpp
Copy path
More file actions
More file actions
Latest commit
History
History
History
24 lines (19 loc) · 631 Bytes
Breadcrumbs
expresscpp
/
src
/
nextrouter.cpp
Copy path
File metadata and controls
24 lines (19 loc) · 631 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#
include
"
expresscpp/nextrouter.hpp
"
#
include
"
expresscpp/console.hpp
"
#
include
"
expresscpp/router.hpp
"
namespace
expresscpp
{
void
NextRouter::operator
()(std::shared_ptr<std::string> error) {
Console::Debug
(
"
next called
"
);
if
(error !=
nullptr
) {
Console::Error
(*error);
}
if
(router_ ==
nullptr
) {
Console::Trace
(
"
no callback for next handler registered
"
);
return
;
}
router_->
Next
(req_, res_, error);
}
NextRouter::NextRouter
(Router* router, std::shared_ptr<Request> req, std::shared_ptr<Response> res)
: req_{
std::move
(req)}, res_{
std::move
(res)}, router_{router} {
}
}
//
namespace expresscpp
Back
|
FazBrowse Home
|
New Git URL