1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495 |
- <?php
- namespace Symfony\Contracts\HttpClient;
- use Symfony\Contracts\HttpClient\Exception\TransportExceptionInterface;
- use Symfony\Contracts\HttpClient\Test\HttpClientTestCase;
- interface HttpClientInterface
- {
- public const OPTIONS_DEFAULTS = [
- 'auth_basic' => null,
-
-
- 'auth_bearer' => null,
- 'query' => [],
- 'headers' => [],
- 'body' => '',
-
-
- 'json' => null,
-
-
- 'user_data' => null,
-
- 'max_redirects' => 20,
-
-
- 'http_version' => null,
- 'base_uri' => null,
- 'buffer' => true,
-
-
- 'on_progress' => null,
-
-
- 'resolve' => [],
- 'proxy' => null,
- 'no_proxy' => null,
- 'timeout' => null,
- 'max_duration' => 0,
-
- 'bindto' => '0',
- 'verify_peer' => true,
- 'verify_host' => true,
- 'cafile' => null,
- 'capath' => null,
- 'local_cert' => null,
- 'local_pk' => null,
- 'passphrase' => null,
- 'ciphers' => null,
- 'peer_fingerprint' => null,
- 'capture_peer_cert_chain' => false,
- 'extra' => [],
- ];
-
- public function request(string $method, string $url, array $options = []): ResponseInterface;
-
- public function stream($responses, float $timeout = null): ResponseStreamInterface;
- }
|