Options
All
  • Public
  • Public/Protected
  • All
Menu

Class DownloadBinaryData

Used to download binary data as a file.

Hierarchy

  • DownloadBinaryData

Index

Constructors

Properties

Constructors

constructor

  • new DownloadBinaryData(content: Buffer, mimeType: string, fileName: string): DownloadBinaryData
  • Constructor. Receives the location of the resource.

    Parameters

    • content: Buffer

      The binary data to be downloaded as a file.

    • mimeType: string

      The mime-type to be passed on Content-Type header.

    • fileName: string

      The file name

    Returns DownloadBinaryData

Properties

content

content: Buffer

The binary data to be downloaded as a file.

fileName

fileName: string

The file name

mimeType

mimeType: string

The mime-type to be passed on Content-Type header.

Generated using TypeDoc