classe Parser (Voir la source)

Méthodes

__construct(CurlHandle $ch)

Parser constructor.

string
raw()

Get raw content

string|null
getContent()

Get response content

bool|string
toJson(array|null $default = null)

Get response content as json

mixed
toArray()

Get response content as array

array
getHeaders()

Get the response headers

int|null
getCode()

Get the response code

int|null
getExecutionTime()

Get the response executing time

float|null
getConnexionTime()

Get the request connexion time

float|null
getUploadSize()

Get the response upload size

float|null
getUploadSpeed()

Get the request upload speed

float|null
getDownloadSize()

Get the download size

float|null
getDownloadSpeed()

Get the downlad speed

string
getErrorMessage()

Get error message

int
getErrorNumber()

Get error code

string|null
getContentType()

Get the response content type

void
addAttach(array $attach)

Add attach file

array
getAttach()

Get attached files

void
setAttach(array $attachs)

Set attach files

Détails

__construct(CurlHandle $ch)

Parser constructor.

Paramètres

CurlHandle $ch

string raw()

Get raw content

Valeur de retour

string

Exceptions

string|null getContent()

Get response content

Valeur de retour

string|null

Exceptions

bool|string toJson(array|null $default = null)

Get response content as json

Paramètres

array|null $default

Valeur de retour

bool|string

Exceptions

mixed toArray()

Get response content as array

Valeur de retour

mixed

Exceptions

array getHeaders()

Get the response headers

Valeur de retour

array

Exceptions

int|null getCode()

Get the response code

Valeur de retour

int|null

Exceptions

int|null getExecutionTime()

Get the response executing time

Valeur de retour

int|null

Exceptions

float|null getConnexionTime()

Get the request connexion time

Valeur de retour

float|null

Exceptions

float|null getUploadSize()

Get the response upload size

Valeur de retour

float|null

Exceptions

float|null getUploadSpeed()

Get the request upload speed

Valeur de retour

float|null

Exceptions

float|null getDownloadSize()

Get the download size

Valeur de retour

float|null

Exceptions

float|null getDownloadSpeed()

Get the downlad speed

Valeur de retour

float|null

Exceptions

string getErrorMessage()

Get error message

Valeur de retour

string

Exceptions

int getErrorNumber()

Get error code

Valeur de retour

int

Exceptions

string|null getContentType()

Get the response content type

Valeur de retour

string|null

Exceptions

void addAttach(array $attach)

Add attach file

Paramètres

array $attach

Valeur de retour

void

array getAttach()

Get attached files

Valeur de retour

array

void setAttach(array $attachs)

Set attach files

Paramètres

array $attachs

Valeur de retour

void