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

getCharset

  • getCharset(): any
  • Returns any

setCharset

  • Set the charset to use when encoding the form. The default charset is UTF_8.

    Parameters

    • charset: string

    Returns MultipartForm

  • Set the charset to use when encoding the form. The default charset is UTF_8.

    Parameters

    • charset: any

    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