Site-specific HTTP header fields, e.g. GitHub authentication

This commit is contained in:
Steffen Lange 2021-01-14 22:30:40 +01:00
parent 6493b97182
commit c384a1e845
2 changed files with 18 additions and 1 deletions

12
HostOption.php Normal file
View 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;
}
}
?>