public function getBody(RequestInterface $request, $readerType = null)
    {
        $data    = (string) $request->getBody();
        $payload = Payload::create($data, $request->getHeader('Content-Type'))
            ->setRwType($readerType);

        return $this->processor->parse($payload);
    }
public function getBody(RequestInterface $request, $readerType = null)
    {
        $data    = (string) $request->getBody();
        $payload = Payload::create($data, $request->getHeader('Content-Type'))
            ->setRwType($readerType);

        return $this->processor->parse($payload);
    }
public function getBody ( RequestInterface $ request , $ readerType = null ) { $ data = ( string ) $ request -> getBody ( ) ; $ payload = Payload :: create ( $ data , $ request -> getHeader ( 'Content-Type' ) ) -> setRwType ( $ readerType ) ; return $ this -> processor -> parse ( $ payload ) ; }
Returns the result of the reader for the request

@param \PSX\Http\RequestInterface $request
@param string $readerType
@return mixed
Returns the result of the reader for the request