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 attached files
Set attach files
Détails
__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