How to use handler / interceptor while (de)serializing the json content?
I'd like to write an interceptor to manipulate the body content of HTTP calls. Before sending, it's needed to be converted to Encrypted data as byte[] and after receiving, deserialize the object as well. I don't want to make this manipulation for each web requests and finally, I need them to get as pure T
Is there any way to handle the http calls in one-place for requests/responses?
You can start checking here https://github.com/proyecto26/RestClient/blob/master/src/Proyecto26.RestClient/Helpers/HttpBase.cs#L81
I'm confused a little bit. Do you suggest me to edit source code directly or a technique to override this method I'm not aware of?
Any pull request is always welcome mate, this is a community plugin 🙂
Thanks for your support. I'll do if I make it worked..
You don't need to close this, anyone could do this task in their spare time, that's Open Source :) Also, if you need this urgently you can ask for support with Tidelift here 👍
@coldfish do you have any example with C#?