A class for manipulating Request cookies (Cookie header).

Constructors

Accessors

  • get size(): number
  • The amount of cookies received from the client

    Returns number

Methods

  • Delete all the cookies in the cookies in the request.

    Returns this

  • Delete the cookies matching the passed name or names in the request.

    Parameters

    • names: string | string[]

      Name or names of the cookies to be deleted

    Returns boolean | boolean[]

  • Parameters

    • name: string

    Returns boolean

  • Parameters

    • Rest ...args: [key: string, value: string] | [options: RequestCookie]

    Returns this

  • Returns string