import { scanUntilBoundary } from "https://deno.land/std@0.94.0/mime/multipart.ts";
Scans buf
to identify how much of it can be safely returned as part of the
PartReader
body.
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.