| [ Index ] |
PHP Cross Reference of WordPress Trunk (Updated Daily) |
[Source view] [Print] [Project Stats]
(no description)
| File Size: | 267 lines (11 kb) |
| Included or required: | 0 times |
| Referenced: | 0 times |
| Includes or requires: | 0 files |
HttpTransporter:: (8 methods):
__construct()
send()
mergeOptions()
isGuzzleClient()
sendWithGuzzle()
buildGuzzleOptions()
convertToPsr7Request()
convertFromPsr7Response()
Class: HttpTransporter - X-Ref
HTTP transporter implementation using HTTPlug.| __construct(?ClientInterface $client = null, ?RequestFactoryInterface $requestFactory = null, ?StreamFactoryInterface $streamFactory = null) X-Ref |
| Constructor. param: ClientInterface|null $client PSR-18 HTTP client. param: RequestFactoryInterface|null $requestFactory PSR-17 request factory. param: StreamFactoryInterface|null $streamFactory PSR-17 stream factory. |
| send(Request $request, ?RequestOptions $options = null) X-Ref |
| {@inheritDoc} |
| mergeOptions(?RequestOptions $requestOptions, ?RequestOptions $parameterOptions) X-Ref |
| Merges request options with parameter options taking precedence. return: RequestOptions|null Merged options, or null if both are null. param: RequestOptions|null $requestOptions Options from the Request object. param: RequestOptions|null $parameterOptions Options passed as method parameter. |
| isGuzzleClient(ClientInterface $client) X-Ref |
| Determines if the underlying client matches the Guzzle client shape. return: bool True when the client exposes Guzzle's send signature. param: ClientInterface $client The HTTP client instance. |
| sendWithGuzzle(RequestInterface $request, RequestOptions $options) X-Ref |
| Sends a request using a Guzzle-compatible client. return: ResponseInterface The PSR-7 response received. param: RequestInterface $request The PSR-7 request to send. param: RequestOptions $options The request options. |
| buildGuzzleOptions(RequestOptions $options) X-Ref |
| Converts request options to a Guzzle-compatible options array. return: array<string, mixed> Guzzle-compatible options. param: RequestOptions $options The request options. |
| convertToPsr7Request(Request $request) X-Ref |
| Converts a custom Request to a PSR-7 request. return: RequestInterface The PSR-7 request. param: Request $request The custom request. |
| convertFromPsr7Response(ResponseInterface $psr7Response) X-Ref |
| Converts a PSR-7 response to a custom Response. return: Response The custom response. param: ResponseInterface $psr7Response The PSR-7 response. |
| Generated : Sat Jun 13 09:38:55 2026 | Cross-referenced by PHPXref |