[ Index ]

PHP Cross Reference of phpBB-3.3.3-deutsch

title

Body

[close]

/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

  toString()
  bodySummary()
  rewindBody()
  parseMessage()
  parseRequestUri()
  parseRequest()
  parseResponse()

Functions
Functions that are not part of a class:

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

return: string
param: MessageInterface $message Message to convert to a 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.

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

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.

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

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

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

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

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

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

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



Generated: Sun Feb 14 20:08:31 2021 Cross-referenced by PHPXref 0.7.1