HttpCookies.createBuffered

Creates a cookie.

class HttpCookies
final
void
createBuffered
(,
string name
,
ubyte[] buffer
,
long maxAge
,
string path = "/"
)

Parameters

cookieType HttpCookieType

The type of the cookie.

name string

The name of the cookie.

buffer ubyte[]

The buffer to encode into a SENC encoded cookie string.

maxAge long

The max-age of the cookie. (Seconds the cookie will be alive.)

path string

The path of the cookie. (Default: "/")

Meta