Method | Description | |
---|---|---|
__construct ( string $server ) | Constructs a new REST client instance for the given $server. | |
request ( string $method, string $path, |
Execute a HTTP request to the remote server. |
Method | Description | |
---|---|---|
getRequestHeaders ( array $headers ) : string | Get formatted request headers. |
public __construct ( string $server ) | ||
$server | string | Remote server location. Must include the used protocol. |
protected getRequestHeaders ( array $headers ) : string | ||
$headers | array | |
return | string |