Skip to content

SetCookie

[Source]

A validated, pre-serialized Set-Cookie response header.

Created by SetCookieBuilder.build(). The header_value() method returns the complete header value string ready to be added to a response via ResponseBuilder.add_header("Set-Cookie", set_cookie.header_value()).

class val SetCookie

Public fields

let name: String val

[Source]


let value: String val

[Source]


Public Functions

header_value

[Source]

Return the pre-serialized Set-Cookie header value.

This is the complete string to use as the value of a Set-Cookie header, including all attributes.

fun box header_value()
: String val

Returns