Zend\XmlRpc\Request\Http
XmlRpc Request object -- Request via HTTP
Extends to accept a request via HTTP. Request is
built at construction time using a raw POST; if no data is available, the
request is declared a fault.
Synopsis
class Http
extends Request
{
- // Inherited members from Request
- protected string $encoding;
- protected string $method;
- protected string $xml;
- protected array $params;
- protected Fault $fault;
- protected array $types;
- protected array $xmlRpcParams;
- // methods
- public void __construct()
- public string getRawRequest()
- public array getHeaders()
- public string getFullRequest()
- // Inherited methods from Request
- public void __construct()
- public Request setEncoding()
- public string getEncoding()
- public bool setMethod()
- public string getMethod()
- public void addParam()
- public void setParams()
- public array getParams()
- public array getTypes()
- public bool loadXml()
- public bool isFault()
- public Fault getFault()
- protected array _getXmlRpcParams()
- public string saveXml()
- public string __toString()
Hierarchy
Extends
Members
protected
- $encoding
—
string
Request character encoding - $fault
—
\Zend\XmlRpc\Fault
Fault object, if any - $headers
—
array
Array of headers - $method
—
string
Method to call - $params
—
array
Method parameters - $types
—
array
XML-RPC type for each param - $xml
—
string
Raw XML as received via request - $xml
—
string
XML request - $xmlRpcParams
—
array
XML-RPC request params
Methods
public
- __construct() — Constructor
- getFullRequest() — Retrieve the full HTTP request, including headers and XML
- getHeaders() — Get headers
- getRawRequest() — Retrieve the raw XML request
Inherited from Zend\XmlRpc\Request
protected
- _getXmlRpcParams() — Retrieve method parameters as XMLRPC values
public
- __toString() — Return XML request
- addParam() — Add a parameter to the parameter stack
- getEncoding() — Retrieve current request encoding
- getFault() — Retrieve the fault response, if any
- getMethod() — Retrieve call method
- getParams() — Retrieve the array of parameters
- getTypes() — Return parameter types
- isFault() — Does the current request contain errors and should it return a fault response?
- loadXml() — Load XML and parse into request components
- saveXml() — Create XML request
- setEncoding() — Set encoding to use in request
- setMethod() — Set method to call
- setParams() — Set the parameters array