| Features | - FileGetContents, Curl and MultiCurl clients
- batch requests and HTTP/2 server push with MultiCurl
- PSR-18 client with PSR-7 messages
- Browser class that keeps the last request
- under 1,000 lines of code
| - sync and async requests through one interface
- streaming uploads and downloads
- cookies and JSON
- PSR-7 and PSR-18
- transport-agnostic handlers
- middleware
| - GET, POST, PUT, PATCH, DELETE and other HTTP methods
- headers and cookies
- JSON and XML response decoders
- retries with a configurable retry decider
- file downloads, including fast downloads over several connections
- parallel requests with callbacks through MultiCurl
| - asynchronous HTTP client interface with promises
- synchronous client interface matching PSR-18
- discovery and auto-installation of PSR-17, PSR-18 and HTTPlug implementations
- client-independent plugins for authentication, cookies and more
- clients for sockets and cURL, and adapters for Guzzle and others
|