public function getRequest(RequestInterface $request)
    {
        $requestStr = $this->parser->getRequestAsString($request);
        $endpoint = (string)$request->getUri();
        $method = $request->getMethod();

        return [
            'request' => $requestStr,
            'endpoint' => $endpoint,
            'method' => $method,
        ];
    }