Options
All
  • Public
  • Public/Protected
  • All
Menu

Class MultipartForm

A multipart form.

Hierarchy

  • MultipartForm

Index

Methods

attribute

  • Add an attribute form data part.

    Parameters

    • name: string
    • value: string

    Returns MultipartForm

binaryFileUpload

  • binaryFileUpload(name: string, filename: string, pathname: string, mediaType: string): MultipartForm
  • binaryFileUpload(name: string, filename: string, content: Buffer, mediaType: string): MultipartForm
  • Add a binary file upload form data part.

    Parameters

    • name: string
    • filename: string
    • pathname: string
    • mediaType: string

    Returns MultipartForm

  • Add a binary file upload form data part.

    Parameters

    • name: string
    • filename: string
    • content: Buffer
    • mediaType: string

    Returns MultipartForm

textFileUpload

  • textFileUpload(name: string, filename: string, pathname: string, mediaType: string): MultipartForm
  • textFileUpload(name: string, filename: string, content: Buffer, mediaType: string): MultipartForm
  • Add a text file upload form data part.

    Parameters

    • name: string
    • filename: string
    • pathname: string
    • mediaType: string

    Returns MultipartForm

  • Add a text file upload form data part.

    Parameters

    • name: string
    • filename: string
    • content: Buffer
    • mediaType: string

    Returns MultipartForm

Static create

  • Returns MultipartForm

Generated using TypeDoc