Replies: 1 comment 2 replies
-
You gave the answer in the question : you should write a decorator. You can leverage |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
{{title}}
-
Hi, I need to add some signature to the request headers before I send the request. The signature calculated based on the request method, URL, headers and the body. Is there a way to decorate the Symfony client or the response and access these to calculate and add the signature to the request just before sending it? I mean I can access the options ant others, but the the client does a lot of stuff before actually sending the request, like json encoding, adding headers etc. With a PSR client this can be done easily, but there is a way to do it with the others implementing
Symfony\Contracts\HttpClient\HttpClientInterface
? Thanks!Beta Was this translation helpful? Give feedback.
All reactions