Lines Matching refs:request

11 updated to work with the new immutable PSR-7 request and response objects. Any
42 strings must now be passed into request objects as strings, or provided to
43 the `query` request option when creating requests with clients. The `query`
102 you now create a stack based middleware function that intercepts a request on
122 In v6, you can modify the request before it is sent using the `mapRequest`
123 middleware. The idiomatic way in v6 to modify the request/response lifecycle is
132 $handler->push(Middleware::mapRequest(function (RequestInterface $request) {
133 // Notice that we have to return a request object
134 return $request->withHeader('X-Foo', 'Bar');
142 This version added the [`form_params`](http://guzzle.readthedocs.org/en/latest/request-options.html…
143 and `multipart` request options. `form_params` is an associative array of
145 `application/x-www-form-urlencoded` POST request. The
146 [`multipart`](http://guzzle.readthedocs.org/en/latest/request-options.html#multipart)
147 option is now used to send a multipart/form-data POST request.
150 POST files to a multipart/form-data request.
199 by cancelling a pool of requests or each outstanding future request
278 event emitter of a request, client, etc. now uses the `getEmitter` method
294 $request->getEventDispatcher()->addSubscriber($mock);
295 $request->getEventDispatcher()->removeSubscriber($mock);
297 $request->getEmitter()->attach($mock);
298 $request->getEmitter()->detach($mock);
305 $request->getEventDispatcher()->addListener('foo', function (Event $event) { /* ... */ } );
307 $request->getEmitter()->on('foo', function (Event $event, $name) { /* ... */ } );
320 events to asynchronously manage parallel request transfers.
333 return a request, but rather creates a request, sends the request, and returns
338 $request = $client->get('/');
339 $response = $request->send();
345 $request = $client->createRequest('GET', '/');
346 $response = $client->send($request);
351 - The `send` method no longer accepts more than one request. Use `sendAll` to
353 - `setUserAgent()` has been removed. Use a default request option instead. You
356 - `setSslVerification()` has been removed. Use default request options instead,
364 request options. You can pass an `adapter` to use a custom adapter,
375 Messages no longer have references to their counterparts (i.e., a request no
377 reference to its request). This association is now managed through a
379 these transaction objects using request events that are emitted over the
380 lifecycle of a request.
395 - POST field and file methods have been removed from the request object. You
403 $request = $client->createRequest('POST', '/');
404 $request->getBody()->setField('foo', 'bar');
405 $request->getBody()->addFile(new PostFile('file_key', fopen('/path/to/content', 'r')));
437 system to work with request and response objects as a transaction.
452 $request = $client->get('/');
454 $stream = $factory->fromRequest($request);
466 `allow_redirects` request option.
470 $request = $client->createRequest('GET', '/', ['allow_redirects' => true]);
473 $request = $client->createRequest('GET', '/', [
483 `GuzzleHttp\Stream\StreamInterface`. Creating a new body for a request no
497 emitted over the lifecycle of a request has been significantly reduced to make
498 it easier to understand how to extend the behavior of a request. All events
499 emitted during the lifecycle of a request now emit a custom
502 time (e.g., intercept the request and set a response on the transaction).
504 - `request.before_send` has been renamed to `before` and now emits a
506 - `request.complete` has been renamed to `complete` and now emits a
508 - `request.sent` has been removed. Use `complete`.
509 - `request.success` has been removed. Use `complete`.
511 - `request.exception` has been removed. Use `error`.
512 - `request.receive.status_line` has been removed.
521 request have been received before the body of the response is downloaded. This
524 You can intercept a request and inject a response using the `intercept()` event
587 - `GuzzleHttp\Subscriber\Prepare`: Prepares the body of a request just before
624 guzzle/command that provides request serialization and response parsing using
683 - Marked `Guzzle\Http\Message\Request::isResponseBodyRepeatable()` as deprecated. Use `$request->ge…
693 …`$client->getConfig()->setPath('request.options/auth', array('user', 'pass', 'Basic|Digest|NTLM|An…
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…
698 for various aspects of a request. Because these options make other previous configuration options r…
703 - Marked 'request.params' for `Guzzle\Http\Client` as deprecated. Use `$client->setDefaultOption('p…
740 `$client->getConfig()->setPath('request.options/headers/{header_name}', 'value')`. or
741 `$client->getConfig()->setPath('request.options/headers', array('header_name' => 'value'))` or
744 …lientInterface::getDefaultHeaders(). Use `$client->getConfig()->getPath('request.options/headers')…
759 $request, Response $response);`
760 - `CacheStorageInterface::fetch($key)` has changed to `fetch(RequestInterface $request);`
761 - `CacheStorageInterface::delete($key)` has changed to `delete(RequestInterface $request);`
766 - Added `RevalidationInterface::shouldRevalidate(RequestInterface $request, Response $response)`
812 * Removed the injecting of a request object onto a response object. The methods to get and set a re…
814 …ost classes that used to require a `Guzzle\Service\Command\CommandInterface` typehint now request a
817 on a request while the request is still being transferred
842 Emitting IO events from a RequestMediator is now a parameter that must be set in a request's curl o…
843 'emit_io' key. This was previously set under a request's parameters using 'curl.emit_io'
873 $request = $client->get('http://www.foo.com');
874 echo $request->getUrl();
881 $request = $client->get('http://www.foo.com');
882 echo $request->getUrl();
888 …ssage for `Guzzle\Http\Exception\BadResponseException` no longer contains the full HTTP request and
889 response information. You can, however, get access to the request and response object by calling `g…