Skip to content

HonoCookie

src/HonoCookie.res
let deleteCookie: (Hono.c, string) => unknown

Deletes a cookie from the client's browser.
@param c The Hono context object containing request and response information
@param name The name of the cookie to delete
@returns An unknown value (implementation-dependent return from the underlying library)

src/HonoCookie.res:1:1


src/HonoCookie.res
let deleteCookie: (Hono.c, string) => unknown

src/HonoCookie.res:9:5


src/HonoCookie.res
let setCookie: (Hono.c, string, string) => unit

Sets a cookie with a name and value using default options.
@param c The Hono context object containing request and response information
@param name The name of the cookie to set
@param value The value to assign to the cookie
@returns unit (no return value)

src/HonoCookie.res:11:1


src/HonoCookie.res
let setCookie: (Hono.c, string, string) => unit

src/HonoCookie.res:20:5


src/HonoCookie.res
type setCookieOptions = {
path: string,
secure: bool,
domain: string,
httpOnly?: bool,
maxAge?: float,
expires?: RescriptCore.Date.t,
sameSite?: string,
}

src/HonoCookie.res:22:1


src/HonoCookie.res
let setCookie2: (Hono.c, string, string, setCookieOptions) => unit

Sets a cookie with a name, value, and custom options.
@param c The Hono context object containing request and response information
@param name The name of the cookie to set
@param value The value to assign to the cookie
@param options Configuration options for the cookie including path, security settings, domain, and expiration
@returns unit (no return value)

src/HonoCookie.res:32:1


src/HonoCookie.res
let setCookie2: (Hono.c, string, string, setCookieOptions) => unit

src/HonoCookie.res:42:5