protected function prepareActionResponse(\Psr\Http\Message\ResponseInterface $httpResponse): ActionResponse
    {
        $rawResponse = implode("\r\n", ResponseInformationHelper::prepareHeaders($httpResponse));
        $rawResponse .= "\r\n\r\n";
        $rawResponse .= $httpResponse->getBody()->getContents();

        return ActionResponse::createFromRaw($rawResponse);
    }
protected function prepareActionResponse(\Psr\Http\Message\ResponseInterface $httpResponse): ActionResponse
    {
        $rawResponse = implode("\r\n", ResponseInformationHelper::prepareHeaders($httpResponse));
        $rawResponse .= "\r\n\r\n";
        $rawResponse .= $httpResponse->getBody()->getContents();

        return ActionResponse::createFromRaw($rawResponse);
    }
protected function prepareActionResponse ( \ Psr \ Http \ Message \ ResponseInterface $ httpResponse ) : ActionResponse { $ rawResponse = implode ( "\r\n" , ResponseInformationHelper :: prepareHeaders ( $ httpResponse ) ) ; $ rawResponse .= "\r\n\r\n" ; $ rawResponse .= $ httpResponse -> getBody ( ) -> getContents ( ) ; return ActionResponse :: createFromRaw ( $ rawResponse ) ; }
Prepares the ActionResponse to be dispatched

TODO: Needs to be adapted for next major when we only deliver an action response inside the dispatch.

@param \Psr\Http\Message\ResponseInterface $httpResponse
@return ActionResponse|\Psr\Http\Message\ResponseInterface
Prepares the ActionResponse to be dispatched