You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, is there any way to express that I want to borrow from request body in FromRequest trait implementation? For example, getting &str instead of heapless::String in example.
The text was updated successfully, but these errors were encountered:
I unfortunately ran into lifetime problems when I tried to add support for FromRequest borrowing data from the HTTP request. It's on my desired feature list, but I'm not sure that it's feasible.
I might have a solution, currently in the development branch.
Although function handlers cannot borrow from requests, I've created helper macros to allow RequestHandlerService and PathRouterService to borrow from requests.
Hello, is there any way to express that I want to borrow from request body in
FromRequest
trait implementation? For example, getting&str
instead ofheapless::String
in example.The text was updated successfully, but these errors were encountered: