Added new method get_all_as_list to retrieve cookies as a lua table list of cookies from HTTP request including multiple cookies with same name.
An HTTP request can have multiple cookies with same name when they have different PATH or different DOMAIN(a sub domain). For e.g. Cookies created by example.com domain will be accessible to test.example.com
Added new method get_all_as_list to retrieve cookies as a lua table list of cookies from HTTP request including multiple cookies with same name.
An HTTP request can have multiple cookies with same name when they have different PATH or different DOMAIN(a sub domain). For e.g. Cookies created by example.com domain will be accessible to test.example.com
The existing get_all will override the previous cookie value with the latest value when we have multiple cookies with same name.
There is some duplication of code as I don't want to disturb the existing functionality and also to maintain backward compatibility.
Let me know your thoughts on this so that I can add test cases for the new method.