SimpleXmlHandler
class SimpleXmlHandler extends ResponseHandler
Methods
Check to see if the response was errored
Check to see if the response failed
Check to see if the response was successful (true) or failed/errored (false)
Get the response after it has been sent through any filters
Called by the Client
to initialize the response handler
Details
at line line 15
boolean
wasErrored()
Check to see if the response was errored
at line line 34
boolean
wasFailed()
Check to see if the response failed
at line line 51
boolean
wasSuccessful()
Check to see if the response was successful (true) or failed/errored (false)
in ResponseHandler at line line 81
$this
filter(callable $callable)
Register a filter callback.
These are called after the response handler is initialized by the Client
.
The callback will receive the raw response as its first argument.
Optional extra arguments may be passed here that will also be forwarded to the filter when invoked.
in ResponseHandler at line line 93
string
getCliCall()
Returns a CLI curl version of the request
in ResponseHandler at line line 104
integer
getCode()
Http status code for the response
in ResponseHandler at line line 115
mixed
getFilteredResponse()
Get the response after it has been sent through any filters
in ResponseHandler at line line 126
array
getHeaders()
Get the Http response headers
in ResponseHandler at line line 137
string
getHtmlVersion()
Get the Http response version
in ResponseHandler at line line 148
mixed
getRawResponse()
Get the raw response
in ResponseHandler at line line 159
CurlInfo
info()
Provide access to the curlInfo
property
in ResponseHandler at line line 175
initialize(string $rawResponse, string $htmlVersion, array $headers, integer $code, array $curlInfo, string $cliCall)
Called by the Client
to initialize the response handler