WordPress\AiClient\Providers\Http\Collections

HeadersCollection::__constructpublicWP 0.1.0

Constructor.

Method of the class: HeadersCollection{}

No Hooks.

Returns

null. Nothing (null).

Usage

$HeadersCollection = new HeadersCollection();
$HeadersCollection->__construct( $headers );
$headers(array)
.
Default: []

Changelog

Since 0.1.0 Introduced.

HeadersCollection::__construct() code WP 7.0

public function __construct(array $headers = [])
{
    foreach ($headers as $name => $value) {
        $this->set($name, $value);
    }
}