src/Weew/Http/HttpRequest.php
public function getParameter($key, $default = null) {
        $value = $this->getUrl()->getQuery()->get($key);

        if ($value === null) {
            $value = $this->getData()->get($key, $default);
        }

        return $value;
    }
public function getParameter($key, $default = null) {
        $value = $this->getUrl()->getQuery()->get($key);

        if ($value === null) {
            $value = $this->getData()->get($key, $default);
        }

        return $value;
    }
public function getParameter ( $ key , $ default = null ) { $ value = $ this -> getUrl ( ) -> getQuery ( ) -> get ( $ key ) ; if ( $ value === null ) { $ value = $ this -> getData ( ) -> get ( $ key , $ default ) ; } return $ value ; }
Retrieve a value from url query or message body.

@param string $key
@param null $default

@return mixed
Retrieve a value from url query or message body .