PsrTransport
in package
implements
TransportInterface
FinalYes
Tags
Table of Contents
Interfaces
Properties
- $client : ClientInterface
- $closed : bool
- $compression : array<string|int, mixed>
- $contentType : string
- $endpoint : string
- $headers : array<string|int, mixed>
- $maxRetries : int
- $requestFactory : RequestFactoryInterface
- $retryDelay : int
- $streamFactory : StreamFactoryInterface
Methods
- __construct() : mixed
- contentType() : string
- forceFlush() : bool
- send() : FutureInterface
- shutdown() : bool
- parseContentEncoding() : array<int, string>
Properties
$client read-only
private
ClientInterface
$client
$closed
private
bool
$closed
= false
$compression read-only
private
array<string|int, mixed>
$compression
$contentType read-only
private
string
$contentType
$endpoint read-only
private
string
$endpoint
$headers read-only
private
array<string|int, mixed>
$headers
$maxRetries read-only
private
int
$maxRetries
$requestFactory read-only
private
RequestFactoryInterface
$requestFactory
$retryDelay read-only
private
int
$retryDelay
$streamFactory read-only
private
StreamFactoryInterface
$streamFactory
Methods
__construct()
public
__construct(ClientInterface $client, RequestFactoryInterface $requestFactory, StreamFactoryInterface $streamFactory, string $endpoint, string $contentType, array<string|int, mixed> $headers, array<string|int, mixed> $compression, int $retryDelay, int $maxRetries) : mixed
Parameters
- $client : ClientInterface
- $requestFactory : RequestFactoryInterface
- $streamFactory : StreamFactoryInterface
- $endpoint : string
- $contentType : string
- $headers : array<string|int, mixed>
- $compression : array<string|int, mixed>
- $retryDelay : int
- $maxRetries : int
Tags
contentType()
public
contentType() : string
Return values
stringforceFlush()
public
forceFlush([CancellationInterface|null $cancellation = null ]) : bool
Parameters
- $cancellation : CancellationInterface|null = null
Return values
boolsend()
public
send(string $payload[, CancellationInterface|null $cancellation = null ]) : FutureInterface
Parameters
- $payload : string
- $cancellation : CancellationInterface|null = null
Tags
Return values
FutureInterfaceshutdown()
public
shutdown([CancellationInterface|null $cancellation = null ]) : bool
Parameters
- $cancellation : CancellationInterface|null = null
Return values
boolparseContentEncoding()
private
static parseContentEncoding(ResponseInterface $response) : array<int, string>
Parameters
- $response : ResponseInterface