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
I'd like to be able to pass specific headers on a per request base. I know I can do this by re-creating a client using another HttpLink with the headers I want to pass, but is there a way to do this with an existing client?
I used to use Artemis and we could pass in the Context on execute, which allowed me to override the headers in the request. Is there such a feature within Ferry?
The text was updated successfully, but these errors were encountered:
Ferry does not currently support this on a per request basis directly, but you can add a Link() in front of your HttpLink() that adds the Context entities (ferry used the same system as Artemis under the hood for this).
You could also have the custom link add the headers conditionally, e.g. only for specific requests.
Hi,
I'd like to be able to pass specific headers on a per request base. I know I can do this by re-creating a client using another
HttpLink
with the headers I want to pass, but is there a way to do this with an existing client?I used to use Artemis and we could pass in the
Context
onexecute
, which allowed me to override the headers in the request. Is there such a feature within Ferry?The text was updated successfully, but these errors were encountered: