AutoUpdaterCurlClient
in package
Class AutoUpdaterCurlClient
Table of Contents
- $error : string
- $responseContent : string
- $responseInformation : array<string|int, mixed>
- executeGet() : mixed
- Executes a get request with curl.
- executeHead() : mixed
- Executes a head request with curl.
- executePost() : mixed
- Executes a post request with curl.
- getContent() : string|null
- Returns the content of the curl response.
- getContentType() : string|null
- Returns the content type of the curl response.
- getError() : string|null
- Returns the error message of the curl response.
- getInformation() : array<string|int, mixed>|mixed|null
- Returns all or a specific information of the curl response.
- getStatusCode() : int|null
- Returns the status code of the curl response.
Properties
$error
private
string
$error
$responseContent
private
string
$responseContent
$responseInformation
private
array<string|int, mixed>
$responseInformation
Methods
executeGet()
Executes a get request with curl.
public
executeGet(string $url[, array<string|int, mixed> $options = [] ]) : mixed
Parameters
- $url : string
- $options : array<string|int, mixed> = []
Return values
mixed —executeHead()
Executes a head request with curl.
public
executeHead(string $url[, array<string|int, mixed> $options = [] ]) : mixed
Parameters
- $url : string
- $options : array<string|int, mixed> = []
Return values
mixed —executePost()
Executes a post request with curl.
public
executePost(string $url[, array<string|int, mixed> $data = [] ][, array<string|int, mixed> $options = [] ]) : mixed
Parameters
- $url : string
- $data : array<string|int, mixed> = []
- $options : array<string|int, mixed> = []
Return values
mixed —getContent()
Returns the content of the curl response.
public
getContent() : string|null
Return values
string|null —getContentType()
Returns the content type of the curl response.
public
getContentType() : string|null
Return values
string|null —getError()
Returns the error message of the curl response.
public
getError() : string|null
Return values
string|null —getInformation()
Returns all or a specific information of the curl response.
public
getInformation([string|null $key = null ]) : array<string|int, mixed>|mixed|null
Parameters
- $key : string|null = null
Return values
array<string|int, mixed>|mixed|null —getStatusCode()
Returns the status code of the curl response.
public
getStatusCode() : int|null