public string $encryptionDefaultKey
public string $encryptionDefaultCipher = 'AES-256-CBC'
public string $encryptionHeader = 'X-HAZAAR-COMKEY'
private int $bufferSize = 4096
private int $connectionTimeout = 5
public string $certPassphrase
private bool $autoRedirect = true
private array $redirectMethods = array (
0 => 'GET',
1 => 'OPTIONS',
2 => 'PROPFIND',
)
public string $encryptionKey
public string $encryptionCipher
public __construct(?string $localCert, ?string $passphrase): void
Parameter | Type | Description |
---|
$localCert | string | |
$passphrase | string | |
public auth(string $username, string $password): void
Parameter | Type | Description |
---|
$username | string | |
$password | string | |
public authorisation(Adapter $auth): void
Parameter | Type | Description |
---|
$auth | Adapter | |
public setHeader(string $header, string $value): void
Parameter | Type | Description |
---|
$header | string | |
$value | string | |
public options(string $url): Response
Parameter | Type | Description |
---|
$url | string | |
public get(URL $url, int $redirectLimit = 10, int $offset = -1, ?int $maxlen): Response
Parameter | Type | Description |
---|
$url | URL | |
$redirectLimit | int | |
$offset | int | |
$maxlen | int | |
public head(URL $url, int $redirectLimit = 10): Response
Parameter | Type | Description |
---|
$url | URL | |
$redirectLimit | int | |
public post(URL $url, mixed $data, ?string $dataType, int $redirectLimit = 0): Response
Parameter | Type | Description |
---|
$url | URL | |
$data | mixed | |
$dataType | string | |
$redirectLimit | int | |
public delete(URL $url): Response
Parameter | Type | Description |
---|
$url | URL | |
public trace(URL $url): Response
Parameter | Type | Description |
---|
$url | URL | |
Send a request to the desination host.
public send(Request $request, int $redirectLimit = 10): ?Response
Parameter | Type | Description |
---|
$request | Request | The request to send |
$redirectLimit | int | The number of allowed redirects. To disable |
automated redirects on this request, set to FALSE. |
public getCookies(string $): void
Parameter | Type | Description |
---|
$ | string | |
public getCookie(string $name): string
Parameter | Type | Description |
---|
$name | string | |
public hasCookie(string $name): bool
Parameter | Type | Description |
---|
$name | string | |
public deleteCookie(string $name): void
Parameter | Type | Description |
---|
$name | string | |
public setCookie(string $cookie): void
Parameter | Type | Description |
---|
$cookie | string | |
public cacheCookie(CacheAdapter $cache, bool $cacheAll = false): bool
Parameter | Type | Description |
---|
$cache | CacheAdapter | |
$cacheAll | bool | |
public uncacheCookie(CacheAdapter $cache): bool
Parameter | Type | Description |
---|
$cache | CacheAdapter | |
public deleteCookies(): void
public disableRedirect(): void
public enableEncryption(?string $key, ?string $cipher): void
Parameter | Type | Description |
---|
$key | string | |
$cipher | string | |
private applyCookies(Request $request): Request
Parameter | Type | Description |
---|
$request | Request | |
Generated by Hazaar API Doc Generator