CurlHttpTransport
in package
implements
HttpTransportInterface
cURL transport implementation for SDK HTTP calls.
Table of Contents
Interfaces
- HttpTransportInterface
- HTTP transport contract used by the SDK client.
Properties
Methods
- __construct() : mixed
- send() : HttpResponse
- Sends an HTTP request and returns the response.
- appendMultipartField() : void
- normalizeMultipartBody() : array<string, mixed>
Properties
$curlClient
private
CurlClientInterface
$curlClient
Methods
__construct()
public
__construct([CurlClientInterface|null $curlClient = null ]) : mixed
Parameters
- $curlClient : CurlClientInterface|null = null
send()
Sends an HTTP request and returns the response.
public
send(HttpRequest $request) : HttpResponse
Parameters
- $request : HttpRequest
Return values
HttpResponseappendMultipartField()
private
appendMultipartField(array<string, mixed> &$normalized, string $key, mixed $value) : void
Parameters
- $normalized : array<string, mixed>
- $key : string
- $value : mixed
normalizeMultipartBody()
private
normalizeMultipartBody(array<string, mixed> $payload) : array<string, mixed>
Parameters
- $payload : array<string, mixed>