Closed partydrone closed 3 years ago
Proc is only a 2.x feature (and only documented for 2.x). However help is on it's way in https://github.com/lostisland/faraday/pull/1322
Thanks @jarl-dk for jumping on this! I can't believe this feature was never asked before π, I added it in the 2.x branch (main) while refactoring but I never expected it to be so popular!
Let's keep this open and close it once we merge #1322 π
This is now in the 1.x
branch thanks to @jarl-dk and has just been released as v1.8.0
π
Basic Info
Issue description
Following the Authorization Middleware documentation, I am trying to pass a lambda as an argument for a bearer token, but I get an error instead:
Steps to reproduce
Create a class with a
connection
method that returns a Faraday::Client object configured with the Authorization middleware:Create a new instance of
Client
and make a request:To see the code in full context, check out my repo and look at: