vibe.d beta banner
get vibe.d
0.10.0

Asynchronous I/O that doesn’t get in your way, written in D

Function HTTPServerResponse.setCookie

Sets the specified cookie value.

Cookie setCookie (
  string name,
  string value,
  string path = "/",
  Cookie.Encoding encoding = Encoding.url
) scope scope @safe;

Parameters

NameDescription
name Name of the cookie
value New cookie value - pass null to clear the cookie
path Path (as seen by the client) of the directory tree in which the cookie is visible
encoding Optional encoding (url, raw), default to URL encoding
Authors

Sönke Ludwig, Jan Krüger, Ilya Shipunov

Copyright

© 2012-2017 Sönke Ludwig

License

Subject to the terms of the MIT license, as written in the included LICENSE.txt file.