API Network PsrHttpClient - evansims/openfga-php GitHub Wiki
PSR-18 compliant HTTP client implementation. This implementation wraps any PSR-18 compatible HTTP client, providing automatic discovery if no client is provided. It ensures compatibility with various HTTP client libraries while maintaining a consistent interface for the OpenFGA SDK.
Table of Contents
OpenFGA\Network
public function send(Psr\Http\Message\RequestInterface $request): Psr\Http\Message\ResponseInterface
Send an HTTP request and return the response.
Name | Type | Description |
---|---|---|
$request |
Psr\Http\Message\RequestInterface |
The HTTP request to send |
Psr\Http\Message\ResponseInterface
— The HTTP response