Lines Matching refs:headers

638      * @var bool Stores if last-modified and/or etag headers were sent with the
1597 [$headers, $sniffed] = $fetched;
1621 if (isset($headers['content-type']) && preg_match('/;\x20?charset=([^;]*)/i', $headers['content-type'], $charset)) {
1627 if (isset($headers['content-type']) && preg_match('/;\x20?charset=([^;]*)/i', $headers['content-type'], $charset)) {
1662 if (isset($headers)) {
1663 $this->data['headers'] = $headers;
1710 * @return array|true Returns true if the data was loaded from the cache, or an array of HTTP headers and sniffed type
1762 // Want to know if we tried to send last-modified and/or etag headers
1764 // support this, but we don't always send the headers either.)
1766 if (isset($this->data['headers']['last-modified']) || isset($this->data['headers']['etag'])) {
1767 $headers = [
1770 if (isset($this->data['headers']['last-modified'])) {
1771 $headers['if-modified-since'] = $this->data['headers']['last-modified'];
1773 if (isset($this->data['headers']['etag'])) {
1774 $headers['if-none-match'] = $this->data['headers']['etag'];
1777 $file = $this->registry->create(File::class, [$this->feed_url, $this->timeout/10, 5, $headers, $this->useragent, $this->force_fsockopen, $this->curl_options]);
1816 $headers = [
1819 $file = $this->registry->create(File::class, [$this->feed_url, $this->timeout, 5, $headers, $this->useragent, $this->force_fsockopen, $this->curl_options]);
1836 $copyContentType = $file->headers['content-type'];
1906 $headers = $file->headers;
1910 return [$headers, $sniffed];
1962 * and character encoding HTTP headers (character encoding determined by the
1971 * of HTTP headers), this should only be used once per page (again, at the
2655 if (isset($this->data['headers']['link'])) {
2656 $link_headers = $this->data['headers']['link'];
2760 } elseif (isset($this->data['headers']['content-language'])) {
2761 return $this->sanitize($this->data['headers']['content-language'], self::CONSTRUCT_TEXT);
3173 * Store PubSubHubbub links as headers
3176 * so they are added to the headers when found, to be used later by get_links.
3183 if (isset($file->headers['link']['hub']) ||
3184 (isset($file->headers['link']) &&
3185 preg_match('/rel=hub/', $file->headers['link']))) {
3190 if (isset($file->headers['link'])) {
3191 if ($file->headers['link'] !== '') {
3192 $file->headers['link'] = ', ';
3195 $file->headers['link'] = '';
3197 $file->headers['link'] .= '<'.$hub.'>; rel=hub';
3199 $file->headers['link'] .= ', <'.$self.'>; rel=self';