daku / nette-guzzle-bluescreen
This extension adds a new panel to Tracy Bluescreen for Guzzle.
Installs: 1 150
Dependents: 0
Suggesters: 0
Security: 0
Stars: 2
Watchers: 1
Forks: 0
Open Issues: 0
Requires
- php: >=7.1.0
- guzzlehttp/guzzle: ^6.0 | ^7.0
- nette/di: ^2.4 | ^3.0
Requires (Dev)
- nette/nette: ^2.4 | ^3.0
This package is auto-updated.
Last update: 2024-12-19 22:51:58 UTC
README
This extension adds a new panel to Tracy Bluescreen for Guzzle HTTP client.
When Guzzle exception occures, it will log full request/response body and headers. It will also pretty print the body when the content type is application/json.
Installation
composer require daku/nette-guzzle-bluescreen
Usage
Register the extension in config.neon:
extensions: guzzleBluescreen: Daku\Nette\Guzzle\GuzzleBlueScreenExtension
Configuration
guzzleBluescreen: # Set maximum body length (in kB) that will be logged, if exceeded the body will be truncted. Default is 100 kB. maxBodyLength: 200 # Enable/disable pretty print of json responses. Default is true. prettyPrint: false
Requirements
PHP >= 7.1
Nette >= 2.4