SimpleRESTClientHandler
SimpleRESTClientHandler copied to clipboard
Cannot log entire headers of the request.
I am working on a project with this library. I have a method that is taking page number as argument and making a call to the same web service and loading different data based on the page number. i am receiving the same response always whereas when I make the same POST request from Postman or any other tool, I get correct response.
Unable to log because this library does not expose any logging by default.
Hi @mohit-wal , to enable Logs you can call enableDebugLog(true) after the initialization of the RestClientManager, like:
RestClientManager.initialize(getApplicationContext()).enableDebugLog(true);
Hi @julianfalcionelli, I have done that but it won't help you know the Headers of the request. Only the payload that you send. Correct me if I am wrong.
@mohit-wal, sorry for the delay, you are right, headers are not logged. Keeping this opening to add support of that in the future.
The same you should not be having issues with Headers, with just passing it as Map should be enought, could you fix your problem ?