Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
Public Member Functions | Protected Attributes
Zend_Json_Server_Request_Http Class Reference
Inheritance diagram for Zend_Json_Server_Request_Http:
Zend_Json_Server_Request

Public Member Functions

 __construct ()
 
 getRawJson ()
 
- Public Member Functions inherited from Zend_Json_Server_Request
 setOptions (array $options)
 
 addParam ($value, $key=null)
 
 addParams (array $params)
 
 setParams (array $params)
 
 getParam ($index)
 
 getParams ()
 
 setMethod ($name)
 
 getMethod ()
 
 isMethodError ()
 
 setId ($name)
 
 getId ()
 
 setVersion ($version)
 
 getVersion ()
 
 loadJson ($json)
 
 toJson ()
 
 __toString ()
 

Protected Attributes

 $_rawJson
 
- Protected Attributes inherited from Zend_Json_Server_Request
 $_id
 
 $_isMethodError = false
 
 $_method
 
 $_methodRegex = '/^[a-z][a-z0-9_.]*$/i'
 
 $_params = array()
 
 $_version = '1.0'
 

Detailed Description

Definition at line 33 of file Http.php.

Constructor & Destructor Documentation

◆ __construct()

__construct ( )

Constructor

Pull JSON request from raw POST body and use to populate request.

Returns
void

Definition at line 48 of file Http.php.

49  {
50  $json = file_get_contents('php://input');
51  $this->_rawJson = $json;
52  if (!empty($json)) {
53  $this->loadJson($json);
54  }
55  }

Member Function Documentation

◆ getRawJson()

getRawJson ( )

Get JSON from raw POST body

Returns
string

Definition at line 62 of file Http.php.

63  {
64  return $this->_rawJson;
65  }

Field Documentation

◆ $_rawJson

$_rawJson
protected

Definition at line 39 of file Http.php.


The documentation for this class was generated from the following file: