File Editor
Directories:
.. (Back)
Cookie
Exception
Handler
Files:
BodySummarizer.php
BodySummarizerInterface.php
Client.php
ClientInterface.php
ClientTrait.php
HandlerStack.php
MessageFormatter.php
MessageFormatterInterface.php
Middleware.php
Pool.php
PrepareBodyMiddleware.php
RedirectMiddleware.php
RequestOptions.php
RetryMiddleware.php
TransferStats.php
Utils.php
functions.php
functions_include.php
Create New File
Create
Edit File: BodySummarizer.php
<?php namespace GuzzleHttp; use Psr\Http\Message\MessageInterface; final class BodySummarizer implements BodySummarizerInterface { /** * @var int|null */ private $truncateAt; public function __construct(?int $truncateAt = null) { $this->truncateAt = $truncateAt; } /** * Returns a summarized message body. */ public function summarize(MessageInterface $message): ?string { return $this->truncateAt === null ? Psr7\Message::bodySummary($message) : Psr7\Message::bodySummary($message, $this->truncateAt); } }
Save Changes
Rename File
Rename