getDriver()->request('GET', $this->pathname(), $options); } /** * @inheritDoc */ public function put(array $options = []): ResponseInterface { return $this->getDriver()->request('PUT', $this->pathname(), $options); } /** * @inheritDoc */ public function post(array $options = []): ResponseInterface { return $this->getDriver()->request('POST', $this->pathname(), $options); } /** * @inheritDoc */ public function patch(array $options = []): ResponseInterface { return $this->getDriver()->request('PATCH', $this->pathname(), $options); } /** * @inheritDoc */ public function delete(array $options = []): ResponseInterface { return $this->getDriver()->request('DELETE', $this->pathname(), $options); } /** * @inheritDoc */ public function getAsync(array $options = []): PromiseInterface { return $this->getDriver()->requestAsync('GET', $this->pathname(), $options); } /** * @inheritDoc */ public function putAsync(array $options = []): PromiseInterface { return $this->getDriver()->requestAsync('PUT', $this->pathname(), $options); } /** * @inheritDoc */ public function postAsync(array $options = []): PromiseInterface { return $this->getDriver()->requestAsync('POST', $this->pathname(), $options); } /** * @inheritDoc */ public function patchAsync(array $options = []): PromiseInterface { return $this->getDriver()->requestAsync('PATCH', $this->pathname(), $options); } /** * @inheritDoc */ public function deleteAsync(array $options = []): PromiseInterface { return $this->getDriver()->requestAsync('DELETE', $this->pathname(), $options); } }