Title: wp-includes/php-ai-client/src/Providers/Http/HttpTransporter.php | Developer.WordPress.org

---

# File: wp-includes/php-ai-client/src/Providers/Http/HttpTransporter.php

 * method[HttpTransporter::convertToPsr7Request()](https://developer.wordpress.org/reference/classes/wordpress-aiclient-providers-http-httptransporter/converttopsr7request/)
 * Converts a custom Request to a PSR-7 request.
 * Used by [1 function](https://developer.wordpress.org/reference/classes/wordpress-aiclient-providers-http-httptransporter/converttopsr7request/#used-by)
   | Uses [0 functions](https://developer.wordpress.org/reference/classes/wordpress-aiclient-providers-http-httptransporter/converttopsr7request/#uses)
   | Source: [wp-includes/php-ai-client/src/Providers/Http/HttpTransporter.php:231](https://github.com/WordPress/wordpress-develop/blob/7.0/src/wp-includes/php-ai-client/src/Providers/Http/HttpTransporter.php#L231-L247)
 * method[HttpTransporter::convertFromPsr7Response()](https://developer.wordpress.org/reference/classes/wordpress-aiclient-providers-http-httptransporter/convertfrompsr7response/)
 * Converts a PSR-7 response to a custom Response.
 * Used by [1 function](https://developer.wordpress.org/reference/classes/wordpress-aiclient-providers-http-httptransporter/convertfrompsr7response/#used-by)
   | Uses [1 function](https://developer.wordpress.org/reference/classes/wordpress-aiclient-providers-http-httptransporter/convertfrompsr7response/#uses)
   | Source: [wp-includes/php-ai-client/src/Providers/Http/HttpTransporter.php:256](https://github.com/WordPress/wordpress-develop/blob/7.0/src/wp-includes/php-ai-client/src/Providers/Http/HttpTransporter.php#L256-L266)
 * method[HttpTransporter::mergeOptions()](https://developer.wordpress.org/reference/classes/wordpress-aiclient-providers-http-httptransporter/mergeoptions/)
 * Merges request options with parameter options taking precedence.
 * Used by [1 function](https://developer.wordpress.org/reference/classes/wordpress-aiclient-providers-http-httptransporter/mergeoptions/#used-by)
   | Uses [0 functions](https://developer.wordpress.org/reference/classes/wordpress-aiclient-providers-http-httptransporter/mergeoptions/#uses)
   | Source: [wp-includes/php-ai-client/src/Providers/Http/HttpTransporter.php:95](https://github.com/WordPress/wordpress-develop/blob/7.0/src/wp-includes/php-ai-client/src/Providers/Http/HttpTransporter.php#L95-L131)
 * method[HttpTransporter::isGuzzleClient()](https://developer.wordpress.org/reference/classes/wordpress-aiclient-providers-http-httptransporter/isguzzleclient/)
 * Determines if the underlying client matches the Guzzle client shape.
 * Used by [1 function](https://developer.wordpress.org/reference/classes/wordpress-aiclient-providers-http-httptransporter/isguzzleclient/#used-by)
   | Uses [0 functions](https://developer.wordpress.org/reference/classes/wordpress-aiclient-providers-http-httptransporter/isguzzleclient/#uses)
   | Source: [wp-includes/php-ai-client/src/Providers/Http/HttpTransporter.php:140](https://github.com/WordPress/wordpress-develop/blob/7.0/src/wp-includes/php-ai-client/src/Providers/Http/HttpTransporter.php#L140-L170)
 * method[HttpTransporter::sendWithGuzzle()](https://developer.wordpress.org/reference/classes/wordpress-aiclient-providers-http-httptransporter/sendwithguzzle/)
 * Sends a request using a Guzzle-compatible client.
 * Used by [1 function](https://developer.wordpress.org/reference/classes/wordpress-aiclient-providers-http-httptransporter/sendwithguzzle/#used-by)
   | Uses [1 function](https://developer.wordpress.org/reference/classes/wordpress-aiclient-providers-http-httptransporter/sendwithguzzle/#uses)
   | Source: [wp-includes/php-ai-client/src/Providers/Http/HttpTransporter.php:180](https://github.com/WordPress/wordpress-develop/blob/7.0/src/wp-includes/php-ai-client/src/Providers/Http/HttpTransporter.php#L180-L188)
 * method[HttpTransporter::buildGuzzleOptions()](https://developer.wordpress.org/reference/classes/wordpress-aiclient-providers-http-httptransporter/buildguzzleoptions/)
 * Converts request options to a Guzzle-compatible options array.
 * Used by [1 function](https://developer.wordpress.org/reference/classes/wordpress-aiclient-providers-http-httptransporter/buildguzzleoptions/#used-by)
   | Uses [0 functions](https://developer.wordpress.org/reference/classes/wordpress-aiclient-providers-http-httptransporter/buildguzzleoptions/#uses)
   | Source: [wp-includes/php-ai-client/src/Providers/Http/HttpTransporter.php:197](https://github.com/WordPress/wordpress-develop/blob/7.0/src/wp-includes/php-ai-client/src/Providers/Http/HttpTransporter.php#L197-L222)
 * class[HttpTransporter](https://developer.wordpress.org/reference/classes/wordpress-aiclient-providers-http-httptransporter/)
 * HTTP transporter implementation using HTTPlug.
 * Used by [0 functions](https://developer.wordpress.org/reference/classes/wordpress-aiclient-providers-http-httptransporter/#used-by)
   | Uses [0 functions](https://developer.wordpress.org/reference/classes/wordpress-aiclient-providers-http-httptransporter/#uses)
   | Source: [wp-includes/php-ai-client/src/Providers/Http/HttpTransporter.php:29](https://github.com/WordPress/wordpress-develop/blob/7.0/src/wp-includes/php-ai-client/src/Providers/Http/HttpTransporter.php#L29-L267)
 * method[HttpTransporter::__construct()](https://developer.wordpress.org/reference/classes/wordpress-aiclient-providers-http-httptransporter/__construct/)
 * Constructor.
 * Used by [1 function](https://developer.wordpress.org/reference/classes/wordpress-aiclient-providers-http-httptransporter/__construct/#used-by)
   | Uses [3 functions](https://developer.wordpress.org/reference/classes/wordpress-aiclient-providers-http-httptransporter/__construct/#uses)
   | Source: [wp-includes/php-ai-client/src/Providers/Http/HttpTransporter.php:52](https://github.com/WordPress/wordpress-develop/blob/7.0/src/wp-includes/php-ai-client/src/Providers/Http/HttpTransporter.php#L52-L57)
 * method[HttpTransporter::send()](https://developer.wordpress.org/reference/classes/wordpress-aiclient-providers-http-httptransporter/send/)
 * {@inheritDoc}
 * Used by [0 functions](https://developer.wordpress.org/reference/classes/wordpress-aiclient-providers-http-httptransporter/send/#used-by)
   | Uses [6 functions](https://developer.wordpress.org/reference/classes/wordpress-aiclient-providers-http-httptransporter/send/#uses)
   | Source: [wp-includes/php-ai-client/src/Providers/Http/HttpTransporter.php:64](https://github.com/WordPress/wordpress-develop/blob/7.0/src/wp-includes/php-ai-client/src/Providers/Http/HttpTransporter.php#L64-L85)