WordPress\AiClient\Providers\Http\Contracts
HttpTransporterInterface::send
Sends an HTTP request and returns the response.
Method of the class: HttpTransporterInterface{}
No Hooks.
Returns
Response. The response received.
Usage
$HttpTransporterInterface = new HttpTransporterInterface(); $HttpTransporterInterface->send( $request, ?RequestOptions $options ): Response;
- $request(Request) (required)
- The request to send.
- ?RequestOptions $options
- .
Default:null
Changelog
| Since 0.1.0 | Introduced. |
HttpTransporterInterface::send() HttpTransporterInterface::send code WP 7.0
public function send(Request $request, ?RequestOptions $options = null): Response;