PHP library now supports multipart/form-data content-type and binary fields
This commit is contained in:
22
main/mashape/authentication/CustomHeaderAuthentication.php
Normal file
22
main/mashape/authentication/CustomHeaderAuthentication.php
Normal file
@@ -0,0 +1,22 @@
|
||||
<?php
|
||||
require_once(dirname(__FILE__) . "/HeaderAuthentication.php");
|
||||
|
||||
class CustomHeaderAuthentication extends HeaderAuthentication {
|
||||
|
||||
private $header;
|
||||
|
||||
function __construct($headerName, $headerValue) {
|
||||
$this->header = $headerName . ": " . $headerValue;
|
||||
}
|
||||
|
||||
public function handleHeader() {
|
||||
return $this->header;
|
||||
}
|
||||
|
||||
public function handleParams() {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
?>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user