OXIESEC PANEL
- Current Dir:
/
/
var
/
www
/
firebase
/
vendor
/
guzzlehttp
/
guzzle
/
docs
Server IP: 139.59.38.164
Upload:
Create Dir:
Name
Size
Modified
Perms
📁
..
-
08/12/2024 10:34:08 AM
rwxr-xr-x
📄
Makefile
5.58 KB
08/12/2024 10:33:17 AM
rw-r--r--
📁
_static
-
08/12/2024 10:34:06 AM
rwxr-xr-x
📄
conf.py
2.03 KB
08/12/2024 10:33:17 AM
rw-r--r--
📄
faq.rst
7.16 KB
08/12/2024 10:33:17 AM
rw-r--r--
📄
handlers-and-middleware.rst
10.17 KB
08/12/2024 10:33:17 AM
rw-r--r--
📄
index.rst
1.67 KB
08/12/2024 10:33:17 AM
rw-r--r--
📄
overview.rst
5.3 KB
08/12/2024 10:33:17 AM
rw-r--r--
📄
psr7.rst
13.77 KB
08/12/2024 10:33:17 AM
rw-r--r--
📄
quickstart.rst
20.43 KB
08/12/2024 10:33:17 AM
rw-r--r--
📄
request-options.rst
34.14 KB
08/12/2024 10:33:17 AM
rw-r--r--
📄
requirements.txt
83 bytes
08/12/2024 10:33:17 AM
rw-r--r--
📄
testing.rst
6.97 KB
08/12/2024 10:33:17 AM
rw-r--r--
Editing: index.rst
Close
.. title:: Guzzle, PHP HTTP client ==================== Guzzle Documentation ==================== Guzzle is a PHP HTTP client that makes it easy to send HTTP requests and trivial to integrate with web services. - Simple interface for building query strings, POST requests, streaming large uploads, streaming large downloads, using HTTP cookies, uploading JSON data, etc... - Can send both synchronous and asynchronous requests using the same interface. - Uses PSR-7 interfaces for requests, responses, and streams. This allows you to utilize other PSR-7 compatible libraries with Guzzle. - Abstracts away the underlying HTTP transport, allowing you to write environment and transport agnostic code; i.e., no hard dependency on cURL, PHP streams, sockets, or non-blocking event loops. - Middleware system allows you to augment and compose client behavior. .. code-block:: php $client = new GuzzleHttp\Client(); $res = $client->request('GET', 'https://api.github.com/user', [ 'auth' => ['user', 'pass'] ]); echo $res->getStatusCode(); // "200" echo $res->getHeader('content-type')[0]; // 'application/json; charset=utf8' echo $res->getBody(); // {"type":"User"...' // Send an asynchronous request. $request = new \GuzzleHttp\Psr7\Request('GET', 'http://httpbin.org'); $promise = $client->sendAsync($request)->then(function ($response) { echo 'I completed! ' . $response->getBody(); }); $promise->wait(); User Guide ========== .. toctree:: :maxdepth: 3 overview quickstart request-options psr7 handlers-and-middleware testing faq