Skip to content

Commit 8045e7c

Browse files
committed
More elaboration
1 parent 8cdf71b commit 8045e7c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

README.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,9 @@ The TLS handshake can be a big performance penalty for applications that strive
1010

1111
This package, by default, replaces the bind for the Http facade, to use the same curl handle for all outgoing requests.
1212

13-
It works by binding a Guzzle handle in the service container as a singleton. To reuse across requests, worker mode must be used, such as in Laravel Octane.
13+
It works by binding a Guzzle handle in the service container as a "true"-singleton. To reuse across requests, worker mode must be used, such as in Laravel Octane.
14+
15+
It then automatically rebinds the Http facade to automatically use this singleton, so you don't have to change your code. It is a minimally invasive change to the Http client, and no code changes should be required to use it.
1416

1517
You can also use the bound Guzzle handle in other HTTP clients, by resolving `\Cego\CurlHandleReuseLaravelOctane\ReusedCurlHandle::class` from the service container.
1618

0 commit comments

Comments
 (0)