mirror of
https://github.com/moodle/moodle.git
synced 2025-08-06 01:16:44 +02:00

This commit will import the Guzzle library in core. The imported libraries will be used in the next commits to create an api for the http client to be used in relevant locations. Co-Authored-By: Andrew Nicols <andrew@nicols.co.uk> Co-Authored-By: Safat Shahin <safat.shahin@moodle.com>
27 lines
1.1 KiB
Markdown
27 lines
1.1 KiB
Markdown
getallheaders
|
|
=============
|
|
|
|
PHP `getallheaders()` polyfill. Compatible with PHP >= 5.3.
|
|
|
|
[](https://travis-ci.org/ralouphie/getallheaders)
|
|
[](https://coveralls.io/r/ralouphie/getallheaders?branch=master)
|
|
[](https://packagist.org/packages/ralouphie/getallheaders)
|
|
[](https://packagist.org/packages/ralouphie/getallheaders)
|
|
[](https://packagist.org/packages/ralouphie/getallheaders)
|
|
|
|
|
|
This is a simple polyfill for [`getallheaders()`](http://www.php.net/manual/en/function.getallheaders.php).
|
|
|
|
## Install
|
|
|
|
For PHP version **`>= 5.6`**:
|
|
|
|
```
|
|
composer require ralouphie/getallheaders
|
|
```
|
|
|
|
For PHP version **`< 5.6`**:
|
|
|
|
```
|
|
composer require ralouphie/getallheaders "^2"
|
|
```
|