|
|
|
|
|
by shadowmint
4392 days ago
|
|
I think the point to be made here is that the Request type of origin is an http.Request, not a request.Request, so this isn't an insane recursive structure. What it means is the local request.Request object Floor passes to handlers takes an exclusive immutable borrow of the incoming http.Request object; the 'a is effectively just house keeping to make the compiler happy, because we know the http.Request, coming from a higher call will always exist for the lifetime of the request.Request object in the handler. ...so what you said is true, but the point is that we're asserting using prior knowledge that the compiler cant infer about the lifetime of that borrowed http.Request object. At least, thats my take on it. |
|