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


Namespace

OpenFGA\Network


Source

View source code


Implements


Methods

send

public function send(Psr\Http\Message\RequestInterface $request): Psr\Http\Message\ResponseInterface

Send an HTTP request and return the response.

View source


Parameters

Name Type Description
$request Psr\Http\Message\RequestInterface The HTTP request to send

Returns

Psr\Http\Message\ResponseInterface — The HTTP response

⚠️ **GitHub.com Fallback** ⚠️