HeadersCollection::__construct( $headers = [] )

In this article

Constructor.

Parameters

string|list<string>> $headers Initial headers.

Source

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

Changelog

VersionDescription
0.1.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.