clone method
Creates a copy of the current Request object.
Implementation
Request clone() {
Request copy(Stream<Uint8List> stream) {
final copied = copyTwoStreams(stream);
_storage[#body] = copied.$1;
_storage[#bodyUsed] = false;
return Request(this, body: copied.$2);
}
return switch (body) {
Stream<Uint8List> stream => copy(stream),
_ => Request(this),
};
}