PayloadTransport
extends
Transport
in
Optional binary capability; existing JSON-only custom transports remain valid.
Table of Contents
Methods
- fetchPayload() : string
- Fetch bounded bytes without following redirects and verify declared response metadata.
- 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
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