The feature would work like the addDefaultHeader() method in Config.java. I need to set a cookie that will appear on all my request. I don't want to explicitly set it every time using the cookie() method. Maybe there's already some way to do this?
The use case for me is end-to-end testing, where I log in using an entirely other system (selenium), retrieve the session cookie, convert it and pass it to Unirest to auth all my requests to the API.
I've been using an old fork of Unirest that allows this but I wish to switch back for all the recently added features.
The feature would work like the addDefaultHeader() method in Config.java. I need to set a cookie that will appear on all my request. I don't want to explicitly set it every time using the cookie() method. Maybe there's already some way to do this?
The use case for me is end-to-end testing, where I log in using an entirely other system (selenium), retrieve the session cookie, convert it and pass it to Unirest to auth all my requests to the API.
I've been using an old fork of Unirest that allows this but I wish to switch back for all the recently added features.