lib/Psc/Net/HTTP/RequestHandler.php
protected function dumpRequest(Request $request) {
    $body = $request->getBody();
    
    $dump = "Body of request is:\n";
    
    if (is_object($body) || is_array($body)) {
      $dump .= json_encode($body);
    } elseif(is_string($body)) {
      $dump .= sprintf('"%s"',$body);
    }
    
    return $dump;
  }
protected function dumpRequest(Request $request) {
    $body = $request->getBody();
    
    $dump = "Body of request is:\n";
    
    if (is_object($body) || is_array($body)) {
      $dump .= json_encode($body);
    } elseif(is_string($body)) {
      $dump .= sprintf('"%s"',$body);
    }
    
    return $dump;
  }
protected function dumpRequest ( Request $ request ) { $ body = $ request -> getBody ( ) ; $ dump = "Body of request is:\n" ; if ( is_object ( $ body ) || is_array ( $ body ) ) { $ dump .= json_encode ( $ body ) ; } elseif ( is_string ( $ body ) ) { $ dump .= sprintf ( '"%s"' , $ body ) ; } return $ dump ; }
returns a importable string representation of the request
@return string
returns a importable string representation of the request