public function post($name = null, $defaultValue = null)
    {
        if ($name === null) {
            return $this->getBodyParams();
        } else {
            return $this->getBodyParam($name, $defaultValue);
        }
    }
public function post($name = null, $defaultValue = null)
    {
        if ($name === null) {
            return $this->getBodyParams();
        } else {
            return $this->getBodyParam($name, $defaultValue);
        }
    }
Returns POST parameter with a given name. If name isn't specified, returns an array of all POST parameters.

@param string $name the parameter name
@param mixed $defaultValue the default parameter value if the parameter does not exist.
@return array|mixed