Module

x/abc/vendor/https/deno.land/std/mime/multipart.ts>MultipartReader

A better Deno framework to create web application.
Go to Latest
class MultipartReader
import { MultipartReader } from "https://dotland.deno.dev/x/abc@v1.0.3/vendor/https/deno.land/std/mime/multipart.ts";

Reader for parsing multipart/form-data

Constructors

new
MultipartReader(reader: Deno.Reader, boundary: string)

Properties

private
currentPart: PartReader | undefined
private
partsRead: number
readonly
bufReader: BufReader
readonly
dashBoundary
readonly
dashBoundaryDash
readonly
newLine
readonly
newLineDashBoundary

Methods

private
isBoundaryDelimiterLine(line: Uint8Array): boolean
private
isFinalBoundary(line: Uint8Array): boolean
private
nextPart(): Promise<PartReader | null>
readForm(maxMemory?): Promise<MultipartFormData>

Read all form data from stream. If total size of stored data in memory exceed maxMemory, overflowed file data will be written to temporal files. String field values are never written to files. null value means parsing or writing to file was failed in some reason.