Transport
in
Performs GET requests. Implement it to use another HTTP stack (e.g. a PSR-18 client) or to fake the network in tests. Throw TransportException when no response arrives; return every HTTP status, including 4xx and 5xx, as a Response.
Table of Contents
Methods
Methods
get()
public
get(string $url, array<string, string> $headers) : Response
Parameters
- $url : string
- $headers : array<string, string>