lostisland / faraday

Simple, but flexible HTTP client library, with support for multiple backends.
https://lostisland.github.io/faraday
MIT License
5.72k stars 972 forks source link

Forward the env to Request::Authorization#header_from #1450

Closed swatosh closed 1 year ago

swatosh commented 1 year ago

This will allow more sophisticated signing when calculating the Authorization header that can depend on the parameters of the request (or anything else in the env)

Description

Suggested in #1449 to a generally positive response. I included a specs for both procs and lambdas since it came up in that discussion. I tried to update the website. Sorry I was slow to be getting on with it, but here it is

swatosh commented 1 year ago

👍 Thanks!