import { scanUntilBoundary } from "https://deno.land/x/openbox@1.1.8/runtime/streaming_multipart_reader.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.