Methods |
public static bodySummary(Psr\Http\Message\MessageInterface $message, int $truncateAt = 120) : ?string Get a short summary of the message body. Will return
|
public static parseMessage(string $message) : array 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.
|
public static parseRequest(string $message) : Psr\Http\Message\RequestInterface Parses a request message string into a request object.
|
public static parseRequestUri(string $path, array $headers) : string Constructs a URI for an HTTP request message.
|
public static parseResponse(string $message) : Psr\Http\Message\ResponseInterface Parses a response message string into a response object.
|
public static rewindBody(Psr\Http\Message\MessageInterface $message) : void 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
|
public static toString(Psr\Http\Message\MessageInterface $message) : string Returns the string representation of an HTTP message.
|
Methods |
public static bodySummary(Psr\Http\Message\MessageInterface $message, int $truncateAt = 120) : ?string Get a short summary of the message body. Will return
|
public static parseMessage(string $message) : array 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.
|
public static parseRequest(string $message) : Psr\Http\Message\RequestInterface Parses a request message string into a request object.
|
public static parseRequestUri(string $path, array $headers) : string Constructs a URI for an HTTP request message.
|
public static parseResponse(string $message) : Psr\Http\Message\ResponseInterface Parses a response message string into a response object.
|
public static rewindBody(Psr\Http\Message\MessageInterface $message) : void 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
|
public static toString(Psr\Http\Message\MessageInterface $message) : string Returns the string representation of an HTTP message.
|