New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Removing Rest Request Headers #959
Comments
request.Parameters.remove() |
You can submit a PR with RestSharp/RestSharp/RestRequest.cs Line 461 in 5d02865
But don't forget method xml documentation. |
Any luck submitting a PR for this? |
Im having the same issue as the OP, seems this was never done, i second the notion. |
For client instance, just: |
I think it is already fixed. We only add default parameters if there is no parameter with the same name available in the list of request parameters. It can be overridden by |
Is there a way by which I can remove the header value from RestSharp request.
Ex. I have added token in the request header and after request execution realized that, token is expired. I wanted to apply regenerated to token to request. If I simply add it using AddHeader, it creates a new parameter entry with same name, and does not override the earlier one.
Looking for a way where either i can remove and add or update header.
If this is not supported,
I can generate PR by exposing the method. Please suggest if this is good to have feature in the library.
Thanks
Nilesh
The text was updated successfully, but these errors were encountered: