class Parser (View source)

Methods

__construct(mixed $ch)

Parser constructor.

raw()

Get raw content

getContent()

Get response content

toJson(array $default = null)

Get response content as json

toArray()

Get response content as array

getHeaders()

Get the response headers

getCode()

Get the response code

getExecutionTime()

Get the response executing time

getConnexionTime()

Get the request connexion time

getUploadSize()

Get the response upload size

getUploadSpeed()

Get the request upload speed

getDownloadSize()

Get the download size

getDownloadSpeed()

Get the downlad speed

getErrorMessage()

Get error message

getErrorNumber()

Get error code

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

Details

__construct(mixed $ch)

Parser constructor.

Parameters

mixed $ch

raw()

Get raw content

getContent()

Get response content

toJson(array $default = null)

Get response content as json

Parameters

array $default

toArray()

Get response content as array

getHeaders()

Get the response headers

getCode()

Get the response code

getExecutionTime()

Get the response executing time

getConnexionTime()

Get the request connexion time

getUploadSize()

Get the response upload size

getUploadSpeed()

Get the request upload speed

getDownloadSize()

Get the download size

getDownloadSpeed()

Get the downlad speed

getErrorMessage()

Get error message

getErrorNumber()

Get error code

getContentType()

Get the response content type

void addAttach(array $attach)

Add attach file

Parameters

array $attach

Return Value

void

array getAttach()

Get attach files

Return Value

array

void setAttach(array $attachs)

Set attach files

Parameters

array $attachs

Return Value

void