Skip to content

covenix / ResponseCookie

Interface: ResponseCookie ​

Defined in: src/response.ts:15

A cookie to set on the response. Each cookie becomes its own Set-Cookie header, so multiple cookies coexist. Express handles the formatting.

Properties ​

name ​

name: string

Defined in: src/response.ts:17

Cookie name.


options? ​

optional options?: CookieOptions

Defined in: src/response.ts:21

Express cookie options (maxAge, httpOnly, secure, sameSite, signed, …).


value ​

value: string

Defined in: src/response.ts:19

Cookie value (Express URL-encodes it).