Site-specific HTTP header fields, e.g. GitHub authentication
This commit is contained in:
parent
6493b97182
commit
c384a1e845
2 changed files with 18 additions and 1 deletions
12
HostOption.php
Normal file
12
HostOption.php
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
<?php
|
||||
|
||||
class HostOption {
|
||||
private static $values = array(
|
||||
'api.github.com' => array('Authorization: token TOKEN')
|
||||
);
|
||||
public static function get(string $key) {
|
||||
return array_key_exists($key, self::$values) ? self::$values[$key] : false;
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
Loading…
Add table
Add a link
Reference in a new issue