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. Can you add support return response from befor_dispatch function? It may usefull for handle bearing token auth or basic auth. I think you can change code like this:
local function handler(self, request)
if self.hooks.before_dispatch ~= nil then
- self.hooks.before_dispatch(self, request)
+ local resp = self.hooks.before_dispatch(self, request)
+
+ if resp then
+ return resp
+ end
end
The text was updated successfully, but these errors were encountered:
Hello. Can you add support return response from befor_dispatch function? It may usefull for handle bearing token auth or basic auth. I think you can change code like this:
The text was updated successfully, but these errors were encountered: