# Client

class Client implements IteratorAggregate, Countable

## Traits

Utils
ArrayAble
Download

## Methods

getContent()

No description

from Utils
getHeader(string $key = '')

No description

from Utils
getStatusCode()

No description

from Utils
static
compileOptions(array $options)

No description

from Utils
isJson()

No description

from Utils
toArray()

No description

from Utils
setError(string $error)

No description

from Utils
getError()

No description

from Utils
ArrayIterator
getIterator()

Implement IteratorAggregate interface

from ArrayAble
static anonymousClass
download(string $url, array $options = [])

Download file via URL

from Download
__construct($url, $top, $options)

No description

from Download
void
to(string $pathToSaveFile)

Make http get request and sink it into some path

from Download
void
withProgress(string $pathToSaveFile, Closure $callback)

Download file with progress

from Download
static void
init(string $url = '', array $options = [])

Initialization HTTP instance and Client instance

static void
withOption(string $key, array|string|bool $value)

Register guzzle option

static void
withOptions(array $options)

Register massive guzzle option

static void
reset()

Reset previous instance

int
count()

Implement Countable interface method to count requested result data

static
__callStatic($method, $options)

No description

__call($method, $options)

No description

## Details

###
in Utils at line 17
`getContent()`

No description

###
in Utils at line 22
`getHeader(string $key = '')`

No description

#### Parameters

string | $key |

###
in Utils at line 27
`getStatusCode()`

No description

###
in Utils at line 32
`static compileOptions(array $options)`

No description

#### Parameters

array | $options |

###
in Utils at line 42
`isJson()`

No description

###
in Utils at line 48
`toArray()`

No description

###
in Utils at line 53
`setError(string $error)`

No description

#### Parameters

string | $error |

###
in Utils at line 58
`getError()`

No description

###
in ArrayAble at line 24
`ArrayIterator getIterator()`

Implement IteratorAggregate interface

Use for iterate attributes at foreach()

#### Return Value

ArrayIterator |

###
in Download at line 23
`static anonymousClass download(string $url, array $options = [])`

Download file via URL

#### Parameters

string | $url |
array | $options |

#### Return Value

anonymousClass |

###
in Download at line 32
`__construct($url, $top, $options)`

No description

#### Parameters

| $url |
| $top |
| $options |

###
in Download at line 46
`void to(string $pathToSaveFile)`

Make http get request and sink it into some path

#### Parameters

string | $pathToSaveFile |

#### Return Value

void |

###
in Download at line 79
`void withProgress(string $pathToSaveFile, Closure $callback)`

Download file with progress

#### Parameters

string | $pathToSaveFile |
Closure | $callback |

#### Return Value

void |

###
at line 57
`static void init(string $url = '', array $options = [])`

Initialization HTTP instance and Client instance

#### Parameters

string | $url |
array | $options |

#### Return Value

void |

###
at line 88
`static void withOption(string $key, array|string|bool $value)`

Register guzzle option

#### Parameters

string | $key |
array|string|bool | $value |

#### Return Value

void |

###
at line 102
`static void withOptions(array $options)`

Register massive guzzle option

#### Parameters

array | $options |

#### Return Value

void |

###
at line 115
`static void reset()`

Reset previous instance

#### Return Value

void |

###
at line 154
`int count()`

Implement Countable interface method to count requested result data

#### Return Value

int |

###
at line 159
`static __callStatic($method, $options)`

No description

#### Parameters

| $method |
| $options |

###
at line 165
`__call($method, $options)`

No description

#### Parameters

| $method |
| $options |