Download the PHP package liborm85/loggable-http-client without Composer
On this page you can find all versions of the php package liborm85/loggable-http-client. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Please rate this library. Is it a good library?
Informations about the package loggable-http-client
Loggable HTTP Client
Extended logging for the Symfony HTTP Client allowing especially to log the content of the request and response.
Adds events to PSR-3 logger interface:
'Response content:'
(level:info
) - response body content received; in context is available (details in Usage):request
(\Liborm85\LoggableHttpClient\Context\RequestContextInterface
)response
(\Liborm85\LoggableHttpClient\Context\ResponseContextInterface
)info
(\Liborm85\LoggableHttpClient\Context\InfoContextInterface
)
'Response content (canceled):'
(level:info
) - same as above, only for canceled request (not all data may be available)
Adds additional information to getInfo()
method:
request_json
(mixed
) -json
option from request$options
(if is provided)request_body
(\Liborm85\LoggableHttpClient\Body\BodyInterface
) -body
option from request$options
transformed to object (if is provided)response_time
(float
) - the time when the response was received
Usage
License
MIT
All versions of loggable-http-client with dependencies
PHP Build Version
Package Version
Requires
php Version
>=8.1
symfony/http-client-contracts Version ^3.0
psr/log Version ^1.0|^2.0|^3.0
symfony/http-client-contracts Version ^3.0
psr/log Version ^1.0|^2.0|^3.0
The package liborm85/loggable-http-client contains the following files
Loading the files please wait ....