Lines Matching refs:client

112 $client = new GuzzleHttp\Client();
114 $client->getEmitter()->on('before', function (BeforeEvent $e) {
125 client.
136 // Inject the handler into the client
137 $client = new GuzzleHttp\Client(['handler' => $handler]);
190 The "procedural" global client has been removed with no replacement (e.g.,
278 event emitter of a request, client, etc. now uses the `getEmitter` method
326 `functions.php` for an easy to use static client instance.
338 $request = $client->get('/');
342 $response = $client->get('/');
345 $request = $client->createRequest('GET', '/');
346 $response = $client->send($request);
355 `$client->setConfig('defaults/headers/User-Agent', 'Foo/Bar ' . $client::getDefaultUserAgent())`.
357 like `$client->setConfig('defaults/verify', true)`.
362 `base_url` string or array to use a URI template as the base URL of a client.
368 - The client no longer emits a `client.create_request` event.
369 - Creating requests with a client no longer automatically utilize a URI
403 $request = $client->createRequest('POST', '/');
445 Streaming requests can now be created by a client directly, returning a
452 $request = $client->get('/');
458 $response = $client->get('/', ['stream' => true]);
470 $request = $client->createRequest('GET', '/', ['allow_redirects' => true]);
473 $request = $client->createRequest('GET', '/', [
693 …`$client->getConfig()->setPath('request.options/auth', array('user', 'pass', 'Basic|Digest|NTLM|An…
694 `$client->setDefaultOption('auth', array('user', 'pass', 'Basic|Digest|NTLM|Any'));`
696 3.7 introduces `request.options` as a parameter for a client configuration and as an optional argum…
697 request methods. When paired with a client's configuration settings, these options allow you to spe…
699 configuration options and methods of a client and AbstractCommand have been deprecated.
701 - Marked `Guzzle\Service\Client::getDefaultHeaders()` as deprecated. Use `$client->getDefaultOption…
702 - Marked `Guzzle\Service\Client::setDefaultHeaders()` as deprecated. Use `$client->setDefaultOption…
703 - Marked 'request.params' for `Guzzle\Http\Client` as deprecated. Use `$client->setDefaultOption('p…
706 $command = $client->getCommand('foo', array(
713 $command = $client->getCommand('foo', array(
740 `$client->getConfig()->setPath('request.options/headers/{header_name}', 'value')`. or
741 `$client->getConfig()->setPath('request.options/headers', array('header_name' => 'value'))` or
742 `$client->setDefaultOption('headers/{header_name}', 'value')`. or
743 `$client->setDefaultOption('headers', array('header_name' => 'value'))`.
744 - Removed `Guzzle\Http\ClientInterface::getDefaultHeaders(). Use `$client->getConfig()->getPath('re…
823 Base URLs of a client now follow the rules of http://tools.ietf.org/html/rfc3986#section-5.2.2 when…
850 Before 3.2, the same CurlMulti object was reused globally for each client. This can cause issue whe…
851 to a single client can pollute requests dispatched from other clients.
853 If you still wish to reuse the same CurlMulti object with each client, then you can add a listener …
854 …`service_builder.create_client` event to inject a custom CurlMulti object into each client as it is
861 $event['client']->setCurlMulti($multi);
873 $request = $client->get('http://www.foo.com');
881 $request = $client->get('http://www.foo.com');
918 $client = new self(
923 $client->setConfig($config);
925 …$client->setDescription(ServiceDescription::factory(__DIR__ . DIRECTORY_SEPARATOR . 'client.json')…
927 return $client;
944 $client = new self(
949 $client->setConfig($config);
951 …$client->setDescription(ServiceDescription::factory(__DIR__ . DIRECTORY_SEPARATOR . 'client.json')…
953 return $client;
963 <client>
992 </client>
1141 $client;
1144 $client->addSubscriber(new LogPlugin(new ClosureLogAdapter(function($m) { echo $m; }, $verbosity = …
1155 $client;
1158 $client->addSubscriber(new LogPlugin(new ClosureLogAdapter(function($m) { echo $m; }, $format = Mes…
1178 $client->addSubscriber($backoffPlugin);
1192 $client->addSubscriber($backoffPlugin);