Pudu programming language
Menu
API reference

Std.Http.setCookie

1 declaration

fn

setCookie: Str -> Str -> Std.Http.SetCookie

This is a callable function.

What it does

A cookie with only a name and a value, and the safe attributes set.

Secure and http-only default to on: a cookie that does not need them can

turn them off deliberately, and one that does need them will otherwise

forget.

Read the signature

  • The text after the name is the type checked by Pudu.
  • Read arrows from left to right: inputs come first, and the final type is returned.

Back to Std.HttpSearch related declarations