[ Index ]

PHP Cross Reference of phpBB-3.3.7-deutsch




/vendor/guzzlehttp/psr7/src/ -> Message.php (summary)

(no description)

File Size: 252 lines (8 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 7 functions


Functions that are not part of a class:

toString(MessageInterface $message)   X-Ref
Returns the string representation of an HTTP message.

param: MessageInterface $message Message to convert to a string.
return: string

bodySummary(MessageInterface $message, $truncateAt = 120)   X-Ref
Get a short summary of the message body.

Will return `null` if the response is not printable.

param: MessageInterface $message    The message to get the body summary
param: int              $truncateAt The maximum allowed size of the summary
return: string|null

rewindBody(MessageInterface $message)   X-Ref
Attempts to rewind a message body and throws an exception on failure.

The body of the message will only be rewound if a call to `tell()`
returns a value other than `0`.

param: MessageInterface $message Message to rewind

parseMessage($message)   X-Ref
Parses an HTTP message into an associative array.

The array contains the "start-line" key containing the start line of
the message, "headers" key containing an associative array of header
array values, and a "body" key containing the body of the message.

param: string $message HTTP request or response to parse.
return: array

parseRequestUri($path, array $headers)   X-Ref
Constructs a URI for an HTTP request message.

param: string $path    Path from the start-line
param: array  $headers Array of headers (each value an array).
return: string

parseRequest($message)   X-Ref
Parses a request message string into a request object.

param: string $message Request message string.
return: Request

parseResponse($message)   X-Ref
Parses a response message string into a response object.

param: string $message Response message string.
return: Response

Generated: Thu Mar 24 21:31:15 2022 Cross-referenced by PHPXref 0.7.1