public function setHeaders(array $headers = []): Request
    {
        $headers = $headers ?: $this->server()->getHeaders();

        $this->headers = new Headers($headers);

        return $this;
    }
public function setHeaders(array $headers = []): Request
    {
        $headers = $headers ?: $this->server()->getHeaders();

        $this->headers = new Headers($headers);

        return $this;
    }
public function setHeaders ( array $ headers = [ ] ) : Request { $ headers = $ headers ? : $ this -> server ( ) -> getHeaders ( ) ; $ this -> headers = new Headers ( $ headers ) ; return $ this ; }
Set the headers parameters.

@param array $headers

@return \Valkyrja\Http\Request
Set the headers parameters .