Searched refs:bodySummarizer (Results 1 – 2 of 2) sorted by relevance
54 …* @param BodySummarizerInterface|null $bodySummarizer The body summarizer to use in exception mess…58 public static function httpErrors(BodySummarizerInterface $bodySummarizer = null): callable argument60 return static function (callable $handler) use ($bodySummarizer): callable {61 return static function ($request, array $options) use ($handler, $bodySummarizer) {67 static function (ResponseInterface $response) use ($request, $bodySummarizer) {72 … throw RequestException::create($request, $response, null, [], $bodySummarizer);
62 * @param BodySummarizerInterface|null $bodySummarizer Optional body summarizer69 BodySummarizerInterface $bodySummarizer = null argument107 $summary = ($bodySummarizer ?? new BodySummarizer())->summarize($response);