BoundedProgressPayloadTransport
extends
ProgressPayloadTransport
in
Optional finite payload streaming with supervision during transfer and idle I/O.
Table of Contents
Methods
- fetchPayload() : string
- Fetch bounded bytes without following redirects and verify declared response metadata.
- fetchPayloadWithBoundedProgress() : string
- fetchPayloadWithProgress() : string
- send() : array<string, mixed>|array<int, mixed>|null
Methods
fetchPayload()
Fetch bounded bytes without following redirects and verify declared response metadata.
public
fetchPayload(string $uri, array<string, string> $headers, int $maxBytes) : string
Parameters
- $uri : string
- $headers : array<string, string>
- $maxBytes : int
Return values
stringfetchPayloadWithBoundedProgress()
public
fetchPayloadWithBoundedProgress(string $uri, array<string, string> $headers, int $maxBytes, Closure $progress[, int|null $timeoutSeconds = null ]) : string
Parameters
- $uri : string
- $headers : array<string, string>
- $maxBytes : int
- $progress : Closure
- $timeoutSeconds : int|null = null
Return values
stringfetchPayloadWithProgress()
public
fetchPayloadWithProgress(string $uri, array<string, string> $headers, int $maxBytes, callable(): void $progress) : string
Parameters
- $uri : string
- $headers : array<string, string>
- $maxBytes : int
- $progress : callable(): void
-
Exceptions interrupt the transfer unchanged.
Return values
stringsend()
public
send(string $method, string $uri, array<string, string> $headers[, array<string, mixed>|null $body = null ]) : array<string, mixed>|array<int, mixed>|null
Parameters
- $method : string
- $uri : string
- $headers : array<string, string>
- $body : array<string, mixed>|null = null