+ protected function doStreamPreparation()
+ {
+ // pass by default
+ }
+
+ public function extraHeaders()
+ {
+ parent::extraHeaders();
+ foreach ($this->getFeeds() as $feed) {
+ header('Link: <'.htmlspecialchars($feed->getUrl()).'>;' .
+ ' rel="'.htmlspecialchars($feed->rel()).'";' .
+ ' type="'.htmlspecialchars($feed->mimeType()).'"',
+ false // don't overwrite previous headers of this sort
+ );
+ }
+ }
+