Retrieve raw body from the request

@param null|mixed $default
@return array|string|mixed
493654
public function raw($default = null)
    {
        $body = $this->getBody();
        $raw = $default;
        if ($body instanceof SwooleStream) {
            $raw = $body->getContents();
        }
        return $raw;
    }
396315
protected static function restGetFieldsDepth($default = 1)
    {
        $depth = Request::getInstance()->query('_fieldsDepth', false);
        if (!$depth) {
            $fields = static::restGetFields(false);
            if (!$fields) {
                return $default;
            }

            // Determine the deepest key
            $depth = 1;
            foreach (explode(',', $fields) as $key) {
                $keyDepth = substr_count($key, '.');
                if ($depth < $keyDepth) {
                    $depth = $keyDepth;
                }
            }
            return $depth;
        }

        return $depth;

    }
1276198
protected function get($parameter, $default=null) {
		return isset($this->parameters[$parameter]) ? $this->parameters[$parameter] : $default;
	}
211327
public function getParam(string $key, $default = null)
    {
        if (isset($this->post[$key])) {
            return $this->post[$key];
        }
        if (isset($this->get[$key])) {
            return $this->get[$key];
        }
        return $default;
    }
227407
public function get($key, $default = null)
	{
		$this->load();

		return ArrayUtil::get($this->data, $key, $default);
	}
1164570
private function _get($name, $default = null)
    {
        return array_key_exists($name, $this->getData()) ? $this->getData()[$name] : $default;
    }
504878
public function getData($key = null, $default = null)
  {
    if($key === null)
    {
      return $this->_data;
    }

    return array_key_exists($key, $this->_data) ? $this->_data[$key] : $default;
  }
810783
private function get($key, $default = null)
    {
        if (isset($this->responseData['error'][$key])) {
            return $this->responseData['error'][$key];
        }

        return $default;
    }
880831
public function getRawBody()
    {
        if ($this->_rawBody === null) {
            $this->_rawBody = trim(file_get_contents('php://input'));
        }

        return $this->_rawBody;
    }
178582
public function get($name, $default = null)
    {
        if (!array_key_exists($name, $this->data)) {
            return $default;
        }

        return $this->data[$name];
    }
690738
public function get_data($field = null, $default = null) {
		if($field === null) return $this->data;
		return array_key_exists($field, $this->data) ? $this->data[$field] : $default;
	}
339811
public function raw($var, $default = '', $filter = null)
    {
        $data = $this->get($var);
        if (is_null($data['data'])) {
            $data['data'] = $this->returnDefault($default);
        }
        if (is_string($filter)) {
            $filter = explode('|', $filter);
        }
        $filters = array_merge($data['filters'], (array) $filter);
        if (empty($filters)) {
            return $data['data'];
        }

        return $this->template()->filter($filters, $data['data']);
    }
18519
public function payload($name, $default = null)
    {
        if (!static::$payload) {
            static::$payload = json_decode(file_get_contents('php://input'), true);
        }

        $parsed = explode('.', $name);

        $result = static::$payload;

        while ($parsed) {
            $next = array_shift($parsed);
            $next_crypted = Crypt::request($next);

            if (isset($result[$next])) {
                $result = $result[$next];
            } elseif ($next_crypted != $next && isset($result[$next_crypted])) {
                $result = $result[$next_crypted];
            } else {
                return $default;
            }
        }

        return $result;
    }
1098822
public function get(string $path, $default = null)
    {
        return Arr::getByPath($this->data, $path, $default, $this->separator);
    }
102248
public function get(string $name, $default = null)
    {
        $all = $this->all();

        if (! array_key_exists($name, $all)) {
            return $default;
        }

        return $all[$name];
    }
1225106
public function getAcceptableEncodings(?string $default = null): array
	{
		if(!isset($this->acceptableEncodings))
		{
			$this->acceptableEncodings = $this->parseAcceptHeader($this->get('accept-encoding'));
		}

		return $this->acceptableEncodings ?: (array) $default;
	}
416804
public function get_raw_body($uid, $fp=null, $part = null)
    {
        if (!$this->check_connection()) {
            return null;
        }

        return $this->conn->handlePartBody($this->folder, $uid,
            true, $part, null, false, $fp);
    }