Interface MessageParserInterface
HTTP message parser interface used to parse HTTP messages into an array
Direct known implementers
Indirect known implementers
Guzzle\Parser\Message\MessageParser,
Guzzle\Parser\Message\PeclHttpMessageParser
Methods summary
-
publicparseRequest ( string $message )Parse an HTTP request message into an associative array of parts.
-
publicparseResponse ( string $message )Parse an HTTP response message into an associative array of parts.
Methods detail
Parse an HTTP request message into an associative array of parts.
Parameters
- $message
string
$message HTTP request to parse
Returns
array|booleanReturns false if the message is invalid
Parse an HTTP response message into an associative array of parts.
Parameters
- $message
string
$message HTTP response to parse
Returns
array|booleanReturns false if the message is invalid