src/response/PageResolver.php
public function getRequestBody() {
    if (!$this->evaluated) {
      $this->evaluateWebPage();
    }

    if ($this->webPage instanceof JsonPage) {
      $serializer = $this->router->getJsonSerializer();
      return $serializer->serialize($this->rawRequestBody);
    } else {
      return $this->rawRequestBody;
    }
  }
public function getRequestBody() {
    if (!$this->evaluated) {
      $this->evaluateWebPage();
    }

    if ($this->webPage instanceof JsonPage) {
      $serializer = $this->router->getJsonSerializer();
      return $serializer->serialize($this->rawRequestBody);
    } else {
      return $this->rawRequestBody;
    }
  }
public function getRequestBody ( ) { if ( ! $ this -> evaluated ) { $ this -> evaluateWebPage ( ) ; } if ( $ this -> webPage instanceof JsonPage ) { $ serializer = $ this -> router -> getJsonSerializer ( ) ; return $ serializer -> serialize ( $ this -> rawRequestBody ) ; } else { return $ this -> rawRequestBody ; } }
Method to get the request body from the given web page.

@return string the evaluated request body
Method to get the request body from the given web page .