| [ Index ] |
PHP Cross Reference of WordPress Trunk (Updated Daily) |
[Summary view] [Print] [Text view]
1 <?php 2 3 declare (strict_types=1); 4 namespace WordPress\AiClient\Providers\Http\Contracts; 5 6 use WordPress\AiClient\Providers\Http\DTO\Request; 7 use WordPress\AiClient\Providers\Http\DTO\RequestOptions; 8 use WordPress\AiClient\Providers\Http\DTO\Response; 9 /** 10 * Interface for HTTP transport implementations. 11 * 12 * Handles sending HTTP requests and receiving responses using 13 * PSR-7, PSR-17, and PSR-18 standards internally. 14 * 15 * @since 0.1.0 16 */ 17 interface HttpTransporterInterface 18 { 19 /** 20 * Sends an HTTP request and returns the response. 21 * 22 * @since 0.1.0 23 * 24 * @param Request $request The request to send. 25 * @param RequestOptions|null $options Optional transport options for the request. 26 * @return Response The response received. 27 */ 28 public function send(Request $request, ?RequestOptions $options = null): Response; 29 }
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
| Generated : Sat Jun 13 09:38:55 2026 | Cross-referenced by PHPXref |