Deprecated
Use FormData instead. See https://doc.deno.land/deno/stable/~/FormData and https://developer.mozilla.org/en-US/docs/Web/API/FormData for more details.
Scans buf
to identify how much of it can be safely returned as part of the
PartReader
body.
import { scanUntilBoundary } from "https://deno.land/std@0.141.0/mime/multipart.ts";
Parameters
- Is "\r\n--boundary" or "\n--boundary", depending on what mode we are in. The comments below (and the name) assume "\n--boundary", but either is accepted.
- The number of bytes read out so far. If total == 0, then a leading "--boundary" is recognized.