There are multiple requests in the application.
For each API there are different headers, params, content type, url etc which needs to be created and pass to rourltransfer
Also before each API we need to check IF cookies and token are valid or not. If not valid we need to first make a cookie refresh API call, after success we proceed with the actual requests
Please let me know if there is any standard way of doing the same?
Can we have some kind of inheritance for doing the same?