Parser
classe Parser (Voir la source)
Méthodes
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
Détails
__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