Skip to content

Commit 8832bd6

Browse files
committed
chore: added some info
1 parent d64b07b commit 8832bd6

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/Api.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,14 +84,14 @@ protected function request(
8484
$this->eventDispatcher->dispatch(new PostRequestEvent($request, $response));
8585

8686
$contents = $response->getBody()->getContents();
87-
8887
return $this->eventDispatcher->dispatch(new ResponseContentsEvent($contents))->getContents();
8988
}
9089

9190
private function configurePlugins(): void
9291
{
93-
// help servers understand the content
92+
// https://docs.php-http.org/en/latest/plugins/content-type.html
9493
$this->clientBuilder->addPlugin(new ContentTypePlugin(), 40);
94+
// https://docs.php-http.org/en/latest/plugins/content-length.html
9595
$this->clientBuilder->addPlugin(new ContentLengthPlugin(), 32);
9696

9797
// https://docs.php-http.org/en/latest/message/authentication.html

0 commit comments

Comments
 (0)