Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • WebUISend

Index

Methods

  • buffer(buffer: Buffer): void
  • error(code: number, message: string): void
  • Respond with error

    Parameters

    • code: number

      HTTP Code. Like 404, for example

    • message: string

      String message

    Returns void

  • file(path: string): void
  • Respond with file

    Parameters

    • path: string

      Relative file path to this plugin's directory

    Returns void

  • json(data: any): void
  • Respond with json data

    Parameters

    • data: any

      Plain JavaScript object

    Returns void

  • redirect(url: string): void
  • Respond with redirect calls This is useful for progressing your WebUI to the next page when using form.

    Parameters

    • url: string

      Target url

    Returns void

  • text(data: string): void

Generated using TypeDoc