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
We're using Patron in a project, and we need to add a few custom headers based on the state of, say, query params and certain other headers. Since Patron::Session#request already builds a Patron::Request object that has so much stuff I need (like a canonical form of the query params), I'd love to have access to that object prior to sending it to handle_request.
Would you be open to a PR that provides such a mechanism?
Pretty much what I'd do is yank out the code that exists in Patron::Session#request, put it in a method called, say, #build_request, then call that method in #request. Then I can get the request and pass it on to #handle_request later if I want to.
The text was updated successfully, but these errors were encountered:
We're using Patron in a project, and we need to add a few custom headers based on the state of, say, query params and certain other headers. Since
Patron::Session#request
already builds aPatron::Request
object that has so much stuff I need (like a canonical form of the query params), I'd love to have access to that object prior to sending it tohandle_request
.Would you be open to a PR that provides such a mechanism?
Pretty much what I'd do is yank out the code that exists in
Patron::Session#request
, put it in a method called, say,#build_request
, then call that method in#request
. Then I can get the request and pass it on to#handle_request
later if I want to.The text was updated successfully, but these errors were encountered: