Overrides RequestInterface::withRequestTarget
public function withRequestTarget($requestTarget) : RequestInterface { if (preg_match('#\\s#', $requestTarget)) { throw new InvalidArgumentException('Invalid request target provided; cannot contain whitespace'); } $new = clone $this; $new->requestTarget = $requestTarget; return $new; }