original_string: protected function _parse($response)
      {
          $defaults = array(
              'body'    => '',
              'headers' => array('Content-Type: text/html; charset=utf-8'),
              'status'  => 200
          );
          if ( is_array($response) ) {
              $response += $defaults;
          } elseif ( is_string($response) ) {
              $defaults['body'] = $response;
              $response = $defaults;
          } else {
              throw new \LogicException('Response can\'t be NULL.');
          }
          return $response;
      }
code: protected function _parse($response)
      {
          $defaults = array(
              'body'    => '',
              'headers' => array('Content-Type: text/html; charset=utf-8'),
              'status'  => 200
          );
          if ( is_array($response) ) {
              $response += $defaults;
          } elseif ( is_string($response) ) {
              $defaults['body'] = $response;
              $response = $defaults;
          } else {
              throw new \LogicException('Response can\'t be NULL.');
          }
          return $response;
      }
code_tokens: protected function _parse ( $ response ) { $ defaults = array ( 'body' => '' , 'headers' => array ( 'Content-Type: text/html; charset=utf-8' ) , 'status' => 200 ) ; if ( is_array ( $ response ) ) { $ response += $ defaults ; } elseif ( is_string ( $ response ) ) { $ defaults [ 'body' ] = $ response ; $ response = $ defaults ; } else { throw new \ LogicException ( 'Response can\'t be NULL.' ) ; } return $ response ; }
docstring: Parses a response.
  @access protected
  @param mixed $response    The response to be parsed.  Can be an array
  containing 'body', 'headers', and/or 'status'
  keys, or a string which will be used as the
  body of the response.  Note that the headers
  must be well-formed HTTP headers, and the
  status must be an integer (i.e., the one
  associated with the HTTP status code).
  @return array
docstring_tokens: Parses a response .