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.

Table of Contents


Namespace

OpenFGA\Network


Source

View source code


Methods

send

public function send(RequestInterface $request): ResponseInterface

Send an HTTP request and return the response.

View source


Parameters

Name Type Description
$request RequestInterface The HTTP request to send

Returns

ResponseInterface — The HTTP response

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