public function withProtocolVersion($version) { $new = clone $this; $new->request = $this->request->withProtocolVersion($version); return $new; }