classe Parser (Voir la source)

Méthodes

__construct($ch)

Parser constructor.

mixed|null
raw()

Get raw content

mixed|null
getContent()

Get response content

string
toJson(array $default = null)

Get response content as json

array|mixed
toArray()

Get response content as array

array
getHeaders()

Get the response headers

string
getCode()

Get the response code

string
getExecutionTime()

Get the response executing time

string
getConnexionTime()

Get the request connexion time

string
getUploadSize()

Get the response upload size

string
getUploadSpeed()

Get the request upload speed

string
getDownloadSize()

Get the download size

string
getDownloadSpeed()

Get the downlad speed

string
getErrorMessage()

Get error message

int
getErrorNumber()

Get error code

string
getContentType()

Get the response content type

void
addAttach(array $attach)

Add attach file

array
getAttach()

Get attach files

void
setAttach(array $attachs)

Set attach files

Détails

__construct($ch)

Parser constructor.

Paramètres

$ch

mixed|null raw()

Get raw content

Valeur de retour

mixed|null

Exceptions

mixed|null getContent()

Get response content

Valeur de retour

mixed|null

Exceptions

string toJson(array $default = null)

Get response content as json

Paramètres

array $default

Valeur de retour

string

Exceptions

array|mixed toArray()

Get response content as array

Valeur de retour

array|mixed

Exceptions

array getHeaders()

Get the response headers

Valeur de retour

array

Exceptions

string getCode()

Get the response code

Valeur de retour

string

Exceptions

string getExecutionTime()

Get the response executing time

Valeur de retour

string

Exceptions

string getConnexionTime()

Get the request connexion time

Valeur de retour

string

Exceptions

string getUploadSize()

Get the response upload size

Valeur de retour

string

Exceptions

string getUploadSpeed()

Get the request upload speed

Valeur de retour

string

Exceptions

string getDownloadSize()

Get the download size

Valeur de retour

string

Exceptions

string getDownloadSpeed()

Get the downlad speed

Valeur de retour

string

Exceptions

string getErrorMessage()

Get error message

Valeur de retour

string

Exceptions

int getErrorNumber()

Get error code

Valeur de retour

int

Exceptions

string getContentType()

Get the response content type

Valeur de retour

string

Exceptions

void addAttach(array $attach)

Add attach file

Paramètres

array $attach

Valeur de retour

void

array getAttach()

Get attach files

Valeur de retour

array

void setAttach(array $attachs)

Set attach files

Paramètres

array $attachs

Valeur de retour

void