WordPress\AiClient\Providers\Http\Collections

HeadersCollection::__construct │ public │ WP 0.1.0

Constructor.

Метод класса: HeadersCollection{}

Хуков нет.

Возвращает

null. Ничего (null).

Использование

$HeadersCollection = new HeadersCollection();
$HeadersCollection->__construct( $headers );
$headers(массив)
.
По умолчанию: []

Список изменений

С версии 0.1.0 Введена.

Код HeadersCollection::__construct() WP 7.1.4

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