Qiniu\Storage\BucketManager::post PHP Method

post() private method

private post ( $url, $body )
    private function post($url, $body)
    {
        $headers = $this->auth->authorization($url, $body, 'application/x-www-form-urlencoded');
        $ret = Client::post($url, $body, $headers);
        if (!$ret->ok()) {
            return array(null, new Error($url, $ret));
        }
        $r = $ret->body === null ? array() : $ret->json();
        return array($r, null);
    }