public function post($resource, array $payload) { return \Amp\resolve($this->doPost($resource, $payload)); }