Parser
class Parser (View source)
Methods
Parser constructor.
Get raw content
Get response content
Get response content as json
Get response content as array
Get the response headers
Get the response code
Get the response executing time
Get the request connexion time
Get the response upload size
Get the request upload speed
Get the download size
Get the downlad speed
Get error message
Get error code
Get the response content type
Add attach file
Get attach files
Set attach files
Details
__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