multipart Writer interface

Hierarchy

  • MultiPartWriter

Properties

boundary: (() => string)

Type declaration

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

      Returns string

buffer: (() => Buffer)

Type declaration

close: (() => void)

Type declaration

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

      Returns void

formDataContentType: (() => string)

Type declaration

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

      Returns string

setBoundary: ((boundary) => void)

Type declaration

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

      Parameters

      • boundary: string

        boundary separator

      Returns void

writeBuffer: ((mimeHeader, buf) => void)

Type declaration

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

      Parameters

      Returns void

writeField: ((fieldname, value) => void)

Type declaration

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

      Parameters

      • fieldname: string

        field name

      • value: string

        value

      Returns void