NOTE: For Version 3 of the AWS SDK for PHP, please see the V3 User Guide and V3 API Reference.

# Interface MessageParserInterface

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

### Direct known implementers

`Guzzle\Parser\Message\AbstractMessageParser`

### Indirect known implementers

`Guzzle\Parser\Message\MessageParser`, `Guzzle\Parser\Message\PeclHttpMessageParser`

Namespace: Guzzle\Parser\Message
Located at Guzzle/Parser/Message/MessageParserInterface.php

## Methods summary

- `public` `parseRequest ( string $message )`

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

- `public` `parseResponse ( string $message )`

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

## Methods detail

# `public array|boolean`
`parseRequest( string $message )`

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

#### Parameters

$message
  `string`
  $message HTTP request to parse

#### Returns

`array|boolean`
Returns false if the message is invalid
# `public array|boolean`
`parseResponse( string $message )`

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

#### Parameters

$message
  `string`
  $message HTTP response to parse

#### Returns

`array|boolean`
Returns false if the message is invalid

### Magic methods summary