Something went wrong. Try again.
Something went wrong. Try again.
123456789101112131415161718192021222324252627282930<?php
declare(strict_types=1);
namespace Wotnak\Atproto\Client;
use Psr\Http\Client\ClientInterface;use Psr\Http\Message\RequestInterface;use Psr\Http\Message\ResponseInterface;
/** * Sends XRPC requests through a PSR-18 HTTP client. * * @api */final readonly class Psr18XrpcRequestSender implements XrpcRequestSenderInterface {
public function __construct( private ClientInterface $httpClient, ) {}
/** * Sends the request through the configured PSR-18 client. */ public function send(RequestInterface $request): ResponseInterface { return $this->httpClient->sendRequest($request); }
}