punkave/aS3StreamWrapper — pull request #2 by MDrollette (2012-02-03 21:51:28+00:00)
Title: Allow setting of headers

This allows you to specify the headers of the objects stored to S3, such as Cache-Control and Expires, when registering the stream.

```php
$publicOptions = array(
'key' => $this->key,
'secretKey' => $this->secretKey,
'protocol' => 's3',
'acl' => 'public-read',
'headers' => array(
'Cache-Control' => 'max-age=315360000',
'Expires' => gmdate("D, d M Y H:i:s T", strtotime("+5 years"))
)
);
$this->s3->register($publicOptions);
```