src/Web/Result.php
public function getRawRequestResponse($format)
    {
        $result = '';
        if ($this->getRawRequest() !== null || $this->getRawResponse() !== null) {
            $messages = array();
            if ($this->getRawRequest() !== null) {
                $messages[] = $this->t('message_sent') . ":\n" . $this->getRawRequest();
            }
            if ($this->getRawResponse() !== null) {
                $messages[] = $this->t('message_received') . ":\n" . $this->getRawResponse();
            }
            $result .= $this->formatMessages($messages, $format);
        }
        return $result;
    }
public function getRawRequestResponse($format)
    {
        $result = '';
        if ($this->getRawRequest() !== null || $this->getRawResponse() !== null) {
            $messages = array();
            if ($this->getRawRequest() !== null) {
                $messages[] = $this->t('message_sent') . ":\n" . $this->getRawRequest();
            }
            if ($this->getRawResponse() !== null) {
                $messages[] = $this->t('message_received') . ":\n" . $this->getRawResponse();
            }
            $result .= $this->formatMessages($messages, $format);
        }
        return $result;
    }
public function getRawRequestResponse ( $ format ) { $ result = '' ; if ( $ this -> getRawRequest ( ) !== null || $ this -> getRawResponse ( ) !== null ) { $ messages = array ( ) ; if ( $ this -> getRawRequest ( ) !== null ) { $ messages [ ] = $ this -> t ( 'message_sent' ) . ":\n" . $ this -> getRawRequest ( ) ; } if ( $ this -> getRawResponse ( ) !== null ) { $ messages [ ] = $ this -> t ( 'message_received' ) . ":\n" . $ this -> getRawResponse ( ) ; } $ result .= $ this -> formatMessages ( $ messages , $ format ) ; } return $ result ; }
Returns a string with messages for support, ie the request and response.

In html format it will be formatted in a details tag so that it is closed
by default.

@param $format

@return string
Returns a string with messages for support ie the request and response .