Icicle\Http\Message\BasicRequest::withRequestTarget PHP Method

withRequestTarget() public method

public withRequestTarget ( string $target = null ) : Icicle\Http\Message\Request
$target string
return Icicle\Http\Message\Request
    public function withRequestTarget(string $target = null) : Request
    {
        $new = clone $this;
        $new->target = $target instanceof Uri ? $target : $new->filterTarget($target);
        return $new;
    }