This repository has been archived by the owner on Jul 6, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 106
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Bernhard Posselt
committed
Dec 22, 2014
1 parent
d2d16c4
commit 5697f7c
Showing
36 changed files
with
902 additions
and
114 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
43 changes: 43 additions & 0 deletions
43
vendor/fguillot/picofeed/lib/PicoFeed/Client/HttpHeaders.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
<?php | ||
|
||
namespace PicoFeed\Client; | ||
|
||
use ArrayAccess; | ||
|
||
/** | ||
* Class to handle http headers case insensitivity | ||
* | ||
* @author Bernhard Posselt | ||
* @package Client | ||
*/ | ||
class HttpHeaders implements ArrayAccess | ||
{ | ||
private $headers = array(); | ||
|
||
public function __construct(array $headers) | ||
{ | ||
foreach ($headers as $key => $value) { | ||
$this->headers[strtolower($key)] = $value; | ||
} | ||
} | ||
|
||
public function offsetGet($offset) | ||
{ | ||
return $this->headers[strtolower($offset)]; | ||
} | ||
|
||
public function offsetSet($offset, $value) | ||
{ | ||
$this->headers[strtolower($offset)] = $value; | ||
} | ||
|
||
public function offsetExists($offset) | ||
{ | ||
return isset($this->headers[strtolower($offset)]); | ||
} | ||
|
||
public function offsetUnset($offset) | ||
{ | ||
unset($this->headers[strtolower($offset)]); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.