Class default

Class to build and concatenate multipart form data

Hierarchy

  • default

Constructors

Properties

Methods

Constructors

  • new default(boundary: string): default
  • Parameters

    • boundary: string

      The string used to define multipart boundaries and the end of body.

    Returns default

Properties

boundary: string
lines: string[] = []

Methods

  • Append a part to the multipart form data.

    Parameters

    • name: string

      The part name.

    • data: string

      The part data.

    • Optional options: Options

      Pass headers in the options for custom part headers.

    Returns default

  • toString(): string
  • After appending data, use toString() to concatenate the form data for your request.

    Returns string

Generated using TypeDoc