Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • Cookie

Index

Constructors

  • Parameters

    Returns Cookie

Properties

creation: null | Date
creationIndex: number
domain: null | string
expires: Date | "Infinity"
extensions: null | string[]
hostOnly: null | boolean
httpOnly: boolean
key: string
lastAccessed: null | Date
maxAge: number | "Infinity" | "-Infinity"
path: null | string
pathIsDefault: null | boolean
sameSite: string
secure: boolean
value: string

Methods

  • TTL(now?: Date): number
  • Parameters

    • Optional now: Date

    Returns number

  • canonicalizedDomain(): null | string
  • Returns null | string

  • cdomain(): null | string
  • Returns null | string

  • Returns Cookie

  • cookieString(): string
  • Returns string

  • expiryDate(now?: number): Date
  • Parameters

    • Optional now: number

    Returns Date

  • expiryTime(now?: number): number
  • Parameters

    • Optional now: number

    Returns number

  • inspect(): string
  • Returns string

  • isPersistent(): boolean
  • Returns boolean

  • setExpires(exp: string | Date): void
  • Parameters

    • exp: string | Date

    Returns void

  • setMaxAge(number: number): void
  • Parameters

    • number: number

    Returns void

  • toJSON(): {}
  • Returns {}

    • [key: string]: any
  • toString(): string
  • Returns string

  • validate(): string | boolean
  • Returns string | boolean

  • fromJSON(strOrObj: string | object): null | Cookie
  • Parameters

    • strOrObj: string | object

    Returns null | Cookie

  • Parameters

    Returns undefined | Cookie

Generated using TypeDoc