H3 logoH3
  • Guide
  • Utils
  • Examples
  • Migration
  • Blog
  • Guide
  • Utils
  • Examples
  • Migration
  • H3 Utils
  • Request
  • Response
  • Cookie
  • Security
  • Proxy
  • More utils
  • Community

Cookie

H3 cookie utilities.

deleteCookie(event, name, serializeOptions?)

Remove a cookie by name.

getCookie(event, name)

Get a cookie value by name.

parseCookies(event)

Parse the request to get HTTP Cookie header string and returning an object of all cookie name-value pairs.

setCookie(event, name, value, options?)

Set a cookie value by name.

  • Edit this page

Response

H3 response utilities.

Security

H3 security utilities.

On this page

  • deleteCookie(event, name, serializeOptions?)
  • getCookie(event, name)
  • parseCookies(event)
  • setCookie(event, name, value, options?)

H3  Universal, Tiny, and Fast Servers · Generated with UnDocs and Nuxt UI Pro .