public function post($url, $params = [])
    {
        $req = $url instanceof Request ? $url : $this->buildRequest('POST', $url);
        foreach ($params as $key => $value) {
            $req->addPostField($key, $value);
        }
        return $this->exec($req);
    }
public function post($url, $params = [])
    {
        $req = $url instanceof Request ? $url : $this->buildRequest('POST', $url);
        foreach ($params as $key => $value) {
            $req->addPostField($key, $value);
        }
        return $this->exec($req);
    }
public function post ( $ url , $ params = [ ] ) { $ req = $ url instanceof Request ? $ url : $ this -> buildRequest ( 'POST' , $ url ) ; foreach ( $ params as $ key => $ value ) { $ req -> addPostField ( $ key , $ value ) ; } return $ this -> exec ( $ req ) ; }
Shortcut of POST request
@param string|Request $url request URL string, or request object.
@param array $params post fields.
@return Response result response object.
Shortcut of POST request