Skip to content
This repository has been archived by the owner on Jun 12, 2018. It is now read-only.

There is no set-cookie method? #193

Open
sunryy opened this issue Jan 9, 2018 · 2 comments
Open

There is no set-cookie method? #193

sunryy opened this issue Jan 9, 2018 · 2 comments

Comments

@sunryy
Copy link

sunryy commented Jan 9, 2018

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

@sunryy
Copy link
Author

sunryy commented Jan 10, 2018

@sebt3 @Skywalker13

@eidheim
Copy link
Owner

eidheim commented Jan 11, 2018

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants