3 * Zend Framework (http://framework.zend.com/)
5 * @link http://github.com/zendframework/zf2 for the canonical source repository
6 * @copyright Copyright (c) 2005-2013 Zend Technologies USA Inc. (http://www.zend.com)
7 * @license http://framework.zend.com/license/new-bsd New BSD License
10 namespace Zend\Json\Server\Request
;
12 use Zend\Json\Server\Request
as JsonRequest
;
14 class Http
extends JsonRequest
17 * Raw JSON pulled from POST body
25 * Pull JSON request from raw POST body and use to populate request.
28 public function __construct()
30 $json = file_get_contents('php://input');
31 $this->rawJson
= $json;
33 $this->loadJson($json);
38 * Get JSON from raw POST body
42 public function getRawJson()
44 return $this->rawJson
;