public function withBaseUri(string $uri): self
    {
        return tap($this, function ($request) use ($uri) {
            return $this->options = array_merge_recursive($this->options, [
                'base_uri' => $uri,
            ]);
        });
    }
public function withBaseUri(string $uri): self
    {
        return tap($this, function ($request) use ($uri) {
            return $this->options = array_merge_recursive($this->options, [
                'base_uri' => $uri,
            ]);
        });
    }
public function withBaseUri ( string $ uri ) : self { return tap ( $ this , function ( $ request ) use ( $ uri ) { return $ this -> options = array_merge_recursive ( $ this -> options , [ 'base_uri' => $ uri , ] ) ; } ) ; }
Set the base uri for all requests.

@param string $uri

@return \BrianFaust\Http\PendingHttpRequest
Set the base uri for all requests .