HttpClient class
| package | Default |
|---|
delete(string $url, \Kore\array<mixed> $params= array(), \Kore\array<mixed> $headers= array(), string|null $userpwd= null) : \Kore\HttpResponse
| see | \Kore\HttpResponse |
|---|
stringrequest url
\Kore\array<mixed>request parameters
\Kore\array<mixed>request headers
stringnulluser name and password
\Exception |
|---|
\Kore\HttpResponse\Kore\HttpResponseget(string $url, \Kore\array<mixed> $params= array(), \Kore\array<mixed> $headers= array(), string|null $userpwd= null) : \Kore\HttpResponse
| see | \Kore\HttpResponse |
|---|
stringrequest url
\Kore\array<mixed>request parameters
\Kore\array<mixed>request headers
stringnulluser name and password
\Exception |
|---|
\Kore\HttpResponse\Kore\HttpResponsepatch(string $url, \Kore\array<mixed> $params= array(), \Kore\array<mixed> $headers= array(), string|null $userpwd= null) : \Kore\HttpResponse
| see | \Kore\HttpResponse |
|---|
stringrequest url
\Kore\array<mixed>request parameters
\Kore\array<mixed>request headers
stringnulluser name and password
\Exception |
|---|
\Kore\HttpResponse\Kore\HttpResponsepost(string $url, \Kore\array<mixed> $params= array(), \Kore\array<mixed> $headers= array(), string|null $userpwd= null) : \Kore\HttpResponse
| see | \Kore\HttpResponse |
|---|
stringrequest url
\Kore\array<mixed>request parameters
\Kore\array<mixed>request headers
stringnulluser name and password
\Exception |
|---|
\Kore\HttpResponse\Kore\HttpResponseput(string $url, \Kore\array<mixed> $params= array(), \Kore\array<mixed> $headers= array(), string|null $userpwd= null) : \Kore\HttpResponse
| see | \Kore\HttpResponse |
|---|
stringrequest url
\Kore\array<mixed>request parameters
\Kore\array<mixed>request headers
stringnulluser name and password
\Exception |
|---|
\Kore\HttpResponse\Kore\HttpResponsesetConnectTimeout(integer $connectTimeout) : void
integerconnect timeout
setTimeout(integer $timeout) : void
integertimeout
buildHeader(\Kore\array<mixed> $headers) : \Kore\array<string>
Build the associative array headers into a curl-friendly format.
\Kore\array<mixed>headers
\Kore\array<string>built headerscommunicate(string $method, string $url, \Kore\array<mixed> $params= array(), \Kore\array<mixed> $headers= array(), string|null $userpwd= null) : \Kore\HttpResponse
| see | \Kore\HttpResponse |
|---|
stringhttp method
stringrequest url
\Kore\array<mixed>request parameters
\Kore\array<mixed>request headers
stringnulluser name and password
\Exception |
|---|
\Kore\HttpResponse\Kore\HttpResponse$connectTimeout : integer
300Used as the value of CURLOPT_CONNECTTIMEOUT. If unspecified, the default is 300. For unlimited, specify 0.
$timeout : integer
300Used as the value of CURLOPT_TIMEOUT. If unspecified, the default is 300. For unlimited, specify 0.