Files
unirest-php/main/mashape/authentication/CustomHeaderAuthentication.php
2012-10-10 16:45:55 -07:00

20 lines
391 B
PHP

<?php
require_once(dirname(__FILE__) . "/HeaderAuthentication.php");
class CustomHeaderAuthentication extends HeaderAuthentication {
private $headers;
function __construct($headerName, $headerValue) {
$this->headers = array($headerName . ": " . $headerValue);
}
public function handleHeaders() {
return $this->headers;
}
public function handleParams() {
return null;
}
}
?>