interface MessageParserInterface

HTTP message parser interface used to parse HTTP messages into an array

Hierarchy

Expanded class hierarchy of MessageParserInterface

All classes that implement MessageParserInterface

File

drupal/core/vendor/guzzle/parser/Guzzle/Parser/Message/MessageParserInterface.php, line 8

Namespace

Guzzle\Parser\Message
View source
interface MessageParserInterface {

  /**
   * Parse an HTTP request message into an associative array of parts.
   *
   * @param string $message HTTP request to parse
   *
   * @return array|bool Returns false if the message is invalid
   */
  public function parseRequest($message);

  /**
   * Parse an HTTP response message into an associative array of parts.
   *
   * @param string $message HTTP response to parse
   *
   * @return array|bool Returns false if the message is invalid
   */
  public function parseResponse($message);

}

Members

Namesort descending Modifiers Type Description Overrides
MessageParserInterface::parseRequest public function Parse an HTTP request message into an associative array of parts. 2
MessageParserInterface::parseResponse public function Parse an HTTP response message into an associative array of parts. 2