Class WrakerAppResponse

Represents the response object for the Wraker application.

Implements

Constructors

Properties

locals: WrakerAppLocals = {}

Accessors

Methods

  • Clears the specified cookie.

    Parameters

    • name: string

      The cookie name.

    • Optionaloptions: CookieAttributes

      The cookie options.

    Returns void

  • Ends the response.

    Parameters

    • Optionaldata: any

      The response data.

    • Optionalencoding: string

      The encoding of the response data.

    Returns void

  • Gets the value of the specified header field.

    Parameters

    • field: string

      The header field.

    Returns undefined | string

    The value of the specified header field.