Skip to content

Commit

Permalink
Update docs in client template
Browse files Browse the repository at this point in the history
Signed-off-by: Kim Pepper <[email protected]>
  • Loading branch information
kimpepper committed Dec 16, 2024
1 parent 33f0169 commit 2823c1a
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions util/template/client-class
Original file line number Diff line number Diff line change
Expand Up @@ -142,9 +142,9 @@ class Client
}

/**
* Sends a raw request to the cluster
* @return callable|array
* @throws NoNodesAvailableException
* Send a raw request to the cluster.
*
* @throws \Psr\Http\Client\ClientExceptionInterface
*/
public function request(string $method, string $uri, array $attributes = []): array|string|null
{
Expand All @@ -155,6 +155,11 @@ class Client
return $this->httpTransport->sendRequest($method, $uri, $params, $body, $options['headers'] ?? []);
}

/**
* Send a request for an endpoint.
*
* @throws \Psr\Http\Client\ClientExceptionInterface
*/
private function performRequest(AbstractEndpoint $endpoint): array|string|null
{
return $this->httpTransport->sendRequest(
Expand Down

0 comments on commit 2823c1a

Please sign in to comment.