Documentation

MessageParserInterface

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

Table of Contents

Methods

parseRequest()  : array<string|int, mixed>|bool
Parse an HTTP request message into an associative array of parts.
parseResponse()  : array<string|int, mixed>|bool
Parse an HTTP response message into an associative array of parts.

Methods

parseRequest()

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

public parseRequest(string $message) : array<string|int, mixed>|bool
Parameters
$message : string

HTTP request to parse

Return values
array<string|int, mixed>|bool

Returns false if the message is invalid

parseResponse()

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

public parseResponse(string $message) : array<string|int, mixed>|bool
Parameters
$message : string

HTTP response to parse

Return values
array<string|int, mixed>|bool

Returns false if the message is invalid


        
On this page

Search results