API Network HttpClientInterface - evansims/openfga-php GitHub Wiki
HTTP client interface for sending HTTP requests. This interface abstracts the HTTP client implementation, allowing different HTTP clients to be used interchangeably. It follows the PSR-18 HTTP Client standard for compatibility.
OpenFGA\Network
public function send(RequestInterface $request): ResponseInterface
Send an HTTP request and return the response.
Name | Type | Description |
---|---|---|
$request |
RequestInterface |
The HTTP request to send |
ResponseInterface
— The HTTP response