Interface Guzzle\Parser\Message\MessageParserInterface

Implemented byGuzzle\Parser\Message\AbstractMessageParser, Guzzle\Parser\Message\MessageParser, Guzzle\Parser\Message\PeclHttpMessageParser

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

Public Methods

Hide inherited methods

MethodDescriptionDefined By
parseRequest() Parse an HTTP request message into an associative array of parts. Guzzle\Parser\Message\MessageParserInterface
parseResponse() Parse an HTTP response message into an associative array of parts. Guzzle\Parser\Message\MessageParserInterface

Method Details

parseRequest() public abstract method

Parse an HTTP request message into an associative array of parts.

public abstract array|bool parseRequest ( $message )
$message string

HTTP request to parse

return array|bool

Returns false if the message is invalid

parseResponse() public abstract method

Parse an HTTP response message into an associative array of parts.

public abstract array|bool parseResponse ( $message )
$message string

HTTP response to parse

return array|bool

Returns false if the message is invalid