effect-io-ai

Package: @effect/platform
Module: Cookies

Cookies.set

Add a cookie to a Cookies object

Signature

declare const set: { (name: string, value: string, options?: Cookie["options"]): (self: Cookies) => Either.Either<Cookies, CookiesError>; (self: Cookies, name: string, value: string, options?: Cookie["options"]): Either.Either<Cookies, CookiesError>; }

Source

Since v1.0.0