restbed icon indicating copy to clipboard operation
restbed copied to clipboard

Cookie ?

Open RoyBellingan opened this issue 4 years ago • 3 comments

I think there has been a problem merging https://github.com/Corvusoft/restbed/pull/309 and was then forget to add an out of the box support to cookie.

RoyBellingan avatar Oct 04 '21 17:10 RoyBellingan

There is no direct cookie support in this implementation. But you still have access to the cookies in the header. session->get_request()->get_header("Cookie")

You then obtain a string containing the serialized key/value pairs

Jahrenski avatar Oct 20 '21 13:10 Jahrenski

Hi @Jahrenski thank you for the information, I was already using this method to access it, would you accept a merge request if I provide a (hopefully) compliant cookie parser function method that will return a std::mapstd::string,std::string ? I will try to mimic how other function already behave

RoyBellingan avatar Oct 20 '21 14:10 RoyBellingan

That would be up to Corvusoft to decide, I'm but a user. Good luck.

Jahrenski avatar Oct 20 '21 15:10 Jahrenski