new

fun new(name: String, value: String, domain: String, path: String, maxAge: <Error class: unknown class>): Cookie

Creates a new #SoupCookie with the given attributes.

Use method@Cookie.set_secure and method@Cookie.set_http_only if you need to set those attributes on the returned cookie.

If @domain starts with ".", that indicates a domain (which matches the string after the ".", or any hostname that has @domain as a suffix). Otherwise, it is a hostname and must match exactly.

Return

a new #SoupCookie.

Parameters

name

cookie name

value

cookie value

domain

cookie domain or hostname

path

cookie path, or null

maxAge

max age of the cookie, or -1 for a session cookie