Zend\Json\Server\Request\Http
Synopsis
class Http
extends Request
{
- // members
- protected string $rawJson;
- // Inherited members from Request
- protected mixed $id;
- protected bool $isMethodError;
- protected bool $isParseError;
- protected string $method;
- protected string $methodRegex;
- protected array $params;
- protected string $version;
- // methods
- public void __construct()
- public string getRawJson()
- // Inherited methods from Request
- public Request setOptions()
- public Request addParam()
- public Request addParams()
- public Request setParams()
- public mixed|null getParam()
- public array getParams()
- public Request setMethod()
- public string getMethod()
- public bool isMethodError()
- public bool isParseError()
- public Request setId()
- public mixed getId()
- public Request setVersion()
- public string getVersion()
- public void loadJson()
- public string toJson()
- public string __toString()
Hierarchy
Extends
Members
protected
- $id
—
mixed
Request ID - $isMethodError
—
Zend\Json\Server\bool
Flag - $isParseError
—
Zend\Json\Server\bool
Flag - $method
—
string
Requested method - $methodRegex
—
string
Regex for method - $params
—
array
Request parameters - $rawJson
—
string
Raw JSON pulled from POST body - $version
—
string
JSON-RPC version of request
Methods
public
- __construct() — Constructor
- getRawJson() — Get JSON from raw POST body
Inherited from Zend\Json\Server\Request
public
- __toString() — Cast request to string (JSON)
- addParam() — Add a parameter to the request
- addParams() — Add many params
- getId() — Retrieve request identifier
- getMethod() — Get request method name
- getParam() — Retrieve param by index or key
- getParams() — Retrieve parameters
- getVersion() — Retrieve JSON-RPC version
- isMethodError() — Was a bad method provided?
- isParseError() — Was a malformed JSON provided?
- loadJson() — Set request state based on JSON
- setId() — Set request identifier
- setMethod() — Set request method
- setOptions() — Set request state
- setParams() — Overwrite params
- setVersion() — Set JSON-RPC version
- toJson() — Cast request to JSON