v3.0.x: minor refactor router
v3.0.x: rename Request._template to Request._resolve
v3.0.x: 3.0.3