V Wed, 01 Feb 2017 14:09:41 +0000 aberba via Digitalmars-d-learn <digitalmars-d-learn@puremagic.com> napsáno:
> I can't find it. Like set_cookie() in php. I am not sure but I use this in one of my projects import vibe.http.client; auto clientOCX = new RestInterfaceClient!I(host ~ path); string sessionId = clientOCX.initialize(); clientOCX.requestFilter = (HTTPClientRequest req) { req.headers.addField("Cookie", "vibe.session_id=" ~ sessionId ~ "; Path=/; HttpOnly"); }; return clientOCX;