public function withServerParams(array $params)
    {
        $request = $this->copy();
        $request->serverParams = $params;
        
        $request->reset();
        
        return $request;
    }
public function withServerParams(array $params)
    {
        $request = $this->copy();
        $request->serverParams = $params;
        
        $request->reset();
        
        return $request;
    }
public function withServerParams ( array $ params ) { $ request = $ this -> copy ( ) ; $ request -> serverParams = $ params ; $ request -> reset ( ) ; return $ request ; }
Return an instance with the specified server params.

Resets all properties that can be derived from the server parameters.

Note: this method is not part of the PSR-7 specs.

@param array $params Array of key/value pairs server parameters.
@return static
Return an instance with the specified server params .