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
I face the same problem as in #517 (comment) - I couldn't get not nil raw request.
The only way to get raw request is to use PreRequestHook. But we can have only one hook which will we overwritten if we try to attach the second one like this:
The vernacular should change from SetPrerequestHook to AddPreRequestHook. If you intend to stick with this approach, then offer a CompositePreRequestHook that take a slice of hooks and returns a singular using a closure
I face the same problem as in #517 (comment) - I couldn't get not nil raw request.
The only way to get raw request is to use PreRequestHook. But we can have only one hook which will we overwritten if we try to attach the second one like this:
But having several hooks can be handy. I personally use it to:
That is why I wrote function which acts like this:
So I want so propose to make it possible to have multiple PreRequestHook objects. That will allow to use resty this way:
The text was updated successfully, but these errors were encountered: