Simple-Web-Server icon indicating copy to clipboard operation
Simple-Web-Server copied to clipboard

There is no set-cookie method?

Open sunryy opened this issue 7 years ago • 2 comments

It's my need to put some information into cookie , transport to client.but I can not find related method!

sunryy avatar Jan 09 '18 08:01 sunryy

@sebt3 @Skywalker13

sunryy avatar Jan 10 '18 02:01 sunryy

This method is lacking for the time being, but you can do it your self by using Percent::encode (https://github.com/eidheim/Simple-Web-Server/blob/master/utility.hpp#L42) on the cookie values. I'll might create HttpHeader::FieldValue::SemicolonSeparatedAttributes::create as a way to create Set-Cookie value from a CaseInsensitiveMultimap.

eidheim avatar Jan 11 '18 06:01 eidheim