protected function setRequestHeaders(ServerRequestInterface $baseRequest, array $params)
    {
        $headers = (new ServerRequest())->withServerParams($params)->getHeaders();
        $psrRequest = $baseRequest;

        foreach ($headers as $header => $values) {
            $psrRequest = $psrRequest->withHeader($header, $values);
        }
        
        return $psrRequest;
    }