Creating Request and Response objects with different types of bodies (e.g. strings vs Blobs), with different configurations (downstream or non-downstream), and using different initialization styles (new Request(req) vs new Request(url, { body: req.body })) hit different code paths, and we've seen bugs across several of these. We should enumerate the matrix of possibilities and have tests for all combinations.
Creating
RequestandResponseobjects with different types of bodies (e.g. strings vsBlobs), with different configurations (downstream or non-downstream), and using different initialization styles (new Request(req)vsnew Request(url, { body: req.body })) hit different code paths, and we've seen bugs across several of these. We should enumerate the matrix of possibilities and have tests for all combinations.