vibe.d beta banner
get vibe.d
0.7.30

Function HTTPServerResponse.setCookie

Sets the specified cookie value.

Prototype

Cookie setCookie(
  string name,
  string value,
  string path = "/",
  Cookie.Encoding encoding = cast(Encoding)0
);

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
block ddox.authorsblock ddox.copyrightblock ddox.license
Authors
Copyright
License