Files
unirest-php/main/mashape/authentication/CustomHeaderAuthentication.php
2012-10-02 15:59:55 -07:00

23 lines
394 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;
}
}
?>