`Router.test(request)`
Opened this issue · 0 comments
the-moisrex commented
Testing in a request in a router seems like a good feature for testing.
Possible output:
Request: GET /parse-uri
(GET / normal / endpath ) >> ( const (lambda at dynamic_router_test.cpp:555:39) )
(GET / parse-uri / endpath ) >> ( const (lambda at dynamic_router_test.cpp:558:42) )
+ --------- + ------------------------------------------------
^ ^
Accepted path Response
(GET / root / endpath ) >> ( const (lambda at dynamic_router_test.cpp:561:35) )
- Option for failed routes's details as well
- The result is not a simple string, it's something iterable
- Iterator & iterable
- to_string