code: public function setHost($host)
      {
          foreach ($this->uris as $name => $uri) {
              $this->add($name, $uri->withHost($host));
          }
      }
docs: Sets the host pattern on all uris.
  
  @param string $host The pattern