Type Alias HttpPostField

HttpPostField:
    | { contents: string; name: string }
    | { file: string; filename?: string; name: string; type?: string }

The HTTPPOST option accepts an array with this type.

Type declaration

  • { contents: string; name: string }
    • contents: string

      Field contents

    • name: string

      Field name

  • { file: string; filename?: string; name: string; type?: string }
    • file: string

      File path

    • Optionalfilename?: string

      File name to be used when uploading

    • name: string

      Field name

    • Optionaltype?: string

      Content-Type