Outbound final readonly class
Minn\Http\Outbound · public/minn/src/Minn/Http/Outbound.php · 46 lines
One outgoing HTTP request, normalised: the transport needs nothing else.
Uses 1
Used by 4
Constants and properties
| prop | readonly string $method | Promoted from the constructor. |
| prop | readonly string $url | Promoted from the constructor. |
| prop | readonly array $headers | Promoted from the constructor. |
| prop | readonly ?string $body | Promoted from the constructor. |
| prop | readonly float $timeout | Promoted from the constructor. |
| prop | readonly int $redirects | Promoted from the constructor. |
| prop | readonly bool $verifySsl | Promoted from the constructor. |
| prop | readonly string $userAgent | Promoted from the constructor. |
| prop | readonly ?string $caInfo | Promoted from the constructor. |
| prop | readonly bool $blocking | Promoted from the constructor. |
| prop | readonly ?Closure $prepare | Promoted from the constructor. |
| prop | readonly ?float $connectTimeout | Promoted from the constructor. |
| prop | readonly ?int $maxBytes | Promoted from the constructor. |
Public
| new | __construct(string $method, string $url, array $headers = array ( ), ?string $body = NULL, float $timeout = 5.0, int $redirects = 5, bool $verifySsl = true, string $userAgent = '', ?string $caInfo = NULL, bool $blocking = true, ?Closure $prepare = NULL, ?float $connectTimeout = NULL, ?int $maxBytes = NULL)# |
| ||||||||||||
| method | to(string $url, string $method, ?string $body, array $headers): self# | The same request sent somewhere else, as the next hop of a redirect.
| ||||||||||||
| method | preparing(Closure $prepare): self# | The same request with a last word on the curl handle, run after any it already has. |
Nothing matches.