InitializeRoute sets the route related variables of this request to the context.
(ri *RouteInfo, pathValues *PathValues)
| 311 | |
| 312 | // InitializeRoute sets the route related variables of this request to the context. |
| 313 | func (c *Context) InitializeRoute(ri *RouteInfo, pathValues *PathValues) { |
| 314 | c.route = ri |
| 315 | c.path = ri.Path |
| 316 | c.setPathValues(pathValues) |
| 317 | } |
| 318 | |
| 319 | func (c *Context) setPathValues(pv *PathValues) { |
| 320 | // Router accesses c.pathValues by index and may resize it to full capacity during routing |