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
You could just extend PestJSON and overwrite the prepRequest method. Thats the whole point of this library anyways, extensibility through extends/classes.
i'm well aware of that, but then you have to call parent's parent, that's really ugly and if you extend a class and replace entirely one of it's methods it is considered a bad practice.
if these headers would be moved to a protected property
Hi,
in PestJson there are harcoded headers
the problem is that they cannot be changed and in some situations, like working with Microsoft Sharepoint API you need a little bit different format:
maybe these default headers could be stored in a protected property, that can be overridden if needed, that would be more flexible.
The text was updated successfully, but these errors were encountered: