Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface MultiPartWriter

multipart Writer interface

Hierarchy

  • MultiPartWriter

Index

Methods

boundary

  • boundary(): string
  • get the Writer's boundary

    Returns string

buffer

  • get the buffer of the Writer

    Returns Buffer

close

  • close(): void
  • finish the multipart message and writes the trailing boundary end line to the output.

    Returns void

formDataContentType

  • formDataContentType(): string
  • get the Content-Type for an HTTP multipart/form-data with this Writer's Boundary.

    Returns string

setBoundary

  • setBoundary(boundary: string): void
  • set the boundary. setBoundary must be called before any parts are created.

    Parameters

    • boundary: string

      boundary separator

    Returns void

writeBuffer

  • writeBuffer(mimeHeader: Object, buf: Buffer): void
  • write the mimeHeader data to the buffer

    Parameters

    • mimeHeader: Object

      mime header

    • buf: Buffer

      buffer

    Returns void

writeField

  • writeField(fieldname: string, value: string): void
  • create form field, and then writes the given value

    Parameters

    • fieldname: string

      field name

    • value: string

      value

    Returns void